summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-05-14 00:03:15 +0900
committeraycabta <aycabta@gmail.com>2019-05-14 07:12:59 +0900
commit741321704fa1e4f180c853684a8ceaa6eff3b469 (patch)
tree69bc5fb349a7c0dc547842b26ed9cef8470c4c65 /lib
parent79ead821dd4880725c9c6bb9645b3fad71715c5b (diff)
Remove unused variable in LineEditor
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/line_editor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 1b60b67923..50f11f6480 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -881,7 +881,7 @@ class Reline::LineEditor
else
chr = key.is_a?(String) ? key : key.chr(Encoding::ASCII_8BIT)
if chr.match?(/[[:print:]]/)
- search_word = searcher.resume(key)
+ searcher.resume(key)
else
if @history_pointer
@line = Reline::HISTORY[@history_pointer]