1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Clear completion journey data when finished

03716a411e
This commit is contained in:
aycabta 2021-08-28 02:29:35 +09:00
parent 6273b9bb62
commit d41d41da38

View file

@ -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