From 6cb37d41362c2233a745a2c69bb5930771b3eab5 Mon Sep 17 00:00:00 2001 From: aycabta Date: Sun, 3 Oct 2021 21:37:48 +0900 Subject: [PATCH] [ruby/reline] Initialize @trap_key to suppress warning https://github.com/ruby/reline/commit/b42c0980d9 --- 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 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)