Fix history navigation in vi_insert mode

This commit is contained in:
Adam Cammack 2019-09-07 15:56:29 -05:00 committed by aycabta
parent 3bb1162cac
commit a3533bc904

View File

@ -1327,7 +1327,7 @@ class Reline::LineEditor
end end
end end
@line = '' unless @line @line = '' unless @line
if @config.editing_mode_is?(:emacs) if @config.editing_mode_is?(:emacs, :vi_insert)
@cursor_max = @cursor = calculate_width(@line) @cursor_max = @cursor = calculate_width(@line)
@byte_pointer = @line.bytesize @byte_pointer = @line.bytesize
elsif @config.editing_mode_is?(:vi_command) elsif @config.editing_mode_is?(:vi_command)