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