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

Fix previous history in vi_insert mode

This commit is contained in:
Adam Cammack 2019-09-13 11:03:34 -05:00 committed by aycabta
parent a3533bc904
commit f9332ad833

View file

@ -1280,7 +1280,7 @@ class Reline::LineEditor
@line = Reline::HISTORY[@history_pointer]
end
end
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)