[前][次][番号順一覧][スレッド一覧]

ruby-changes:67325

From: aycabta <ko1@a...>
Date: Sun, 29 Aug 2021 20:31:14 +0900 (JST)
Subject: [ruby-changes:67325] b023ef8594 (master): [ruby/reline] Clear dialog by C-c

https://git.ruby-lang.org/ruby.git/commit/?id=b023ef8594

From b023ef85947530e256f12c8a7809d79a5639414d Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Sat, 28 Aug 2021 02:37:30 +0900
Subject: [ruby/reline] Clear dialog by C-c

https://github.com/ruby/reline/commit/f66a079c85
---
 lib/reline/line_editor.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index e81cd23..b5a5af3 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -151,6 +151,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L151
     @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
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]