зеркало из https://github.com/github/ruby.git
Fix history navigation in vi_insert mode
This commit is contained in:
Родитель
3bb1162cac
Коммит
a3533bc904
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче