summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-08-28 02:29:35 +0900
committeraycabta <aycabta@gmail.com>2021-08-29 20:30:33 +0900
commitd41d41da382bd76fc99f62ed12ddd2c8e688b0e0 (patch)
tree097c9465c13fe4cdfe227f7c5e6a87ae5d5d4dc1 /lib
parent6273b9bb6207901fcd5fc6c0cb5ec97dbf0bc139 (diff)
[ruby/reline] Clear completion journey data when finished
https://github.com/ruby/reline/commit/03716a411e
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 5f39b74774..e81cd23f2a 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -1444,6 +1444,7 @@ class Reline::LineEditor
end
unless completion_occurs
@completion_state = CompletionState::NORMAL
+ @completion_journey_data = nil
end
if not @in_pasting and @just_cursor_moving.nil?
if @previous_line_index and @buffer_of_lines[@previous_line_index] == @line