summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-10-03 21:37:48 +0900
committergit <svn-admin@ruby-lang.org>2021-10-03 21:38:05 +0900
commit6cb37d41362c2233a745a2c69bb5930771b3eab5 (patch)
treede0990fb3c93f5fd5b808107b756f03f43415efa /lib
parentbf4f3ef5ad9759df17e670c926c1a716e624b59c (diff)
[ruby/reline] Initialize @trap_key to suppress warning
https://github.com/ruby/reline/commit/b42c0980d9
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/line_editor.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 71634c2563..1722abc939 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -576,6 +576,7 @@ class Reline::LineEditor
@proc_scope = proc_scope
@width = nil
@scroll_top = 0
+ @trap_key = nil
end
def set_cursor_pos(col, row)