mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Clear dialog by C-c
https://github.com/ruby/reline/commit/f66a079c85
This commit is contained in:
parent
d41d41da38
commit
b023ef8594
1 changed files with 1 additions and 0 deletions
|
@ -151,6 +151,7 @@ class Reline::LineEditor
|
|||
@screen_height = @screen_size.first
|
||||
reset_variables(prompt, encoding: encoding)
|
||||
@old_trap = Signal.trap(:INT) {
|
||||
clear_dialog
|
||||
if @scroll_partial_screen
|
||||
move_cursor_down(@screen_height - (@line_index - @scroll_partial_screen) - 1)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue