Skip to content

Commit f66a079

Browse files
committed
Clear dialog by C-c
1 parent 03716a4 commit f66a079

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/reline/line_editor.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def reset(prompt = '', encoding:)
151151
@screen_height = @screen_size.first
152152
reset_variables(prompt, encoding: encoding)
153153
@old_trap = Signal.trap(:INT) {
154+
clear_dialog
154155
if @scroll_partial_screen
155156
move_cursor_down(@screen_height - (@line_index - @scroll_partial_screen) - 1)
156157
else

0 commit comments

Comments
 (0)