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

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
@line = '' unless @line
if @config.editing_mode_is?(:emacs)
if @config.editing_mode_is?(:emacs, :vi_insert)
@cursor_max = @cursor = calculate_width(@line)
@byte_pointer = @line.bytesize
elsif @config.editing_mode_is?(:vi_command)