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:
parent
a3533bc904
commit
f9332ad833
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue