зеркало из https://github.com/github/ruby.git
[ruby/reline] Update cursor info by inserting newline even if not in pasting
https://github.com/ruby/reline/commit/92d314f514
This commit is contained in:
Родитель
b371ca3f4f
Коммит
08162f0e69
|
@ -491,8 +491,8 @@ class Reline::LineEditor
|
|||
@line = @buffer_of_lines[@line_index]
|
||||
unless @in_pasting
|
||||
render_partial(prompt, prompt_width, @line, @first_line_started_from + @started_from + 1, with_control: false)
|
||||
@cursor = @cursor_max = calculate_width(@line)
|
||||
end
|
||||
@cursor = @cursor_max = calculate_width(@line)
|
||||
@byte_pointer = @line.bytesize
|
||||
@highest_in_all += @highest_in_this
|
||||
@highest_in_this = calculate_height_by_width(prompt_width + @cursor_max)
|
||||
|
|
Загрузка…
Ссылка в новой задаче