diff options
| author | aycabta <aycabta@gmail.com> | 2021-08-25 17:22:23 +0900 |
|---|---|---|
| committer | aycabta <aycabta@gmail.com> | 2021-08-29 20:30:33 +0900 |
| commit | ff43b0f2ddce0b30071be83383e5d178141b2247 (patch) | |
| tree | 01405c694cf058d6ea6c172332213abc2f5a5d26 /lib | |
| parent | ca1a2d1f68b299f07e9953f8d739a4b7c12bc7a0 (diff) | |
[ruby/reline] Update dialog backup before clearing
https://github.com/ruby/reline/commit/a39e2c8813
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/reline/line_editor.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 0966c19404..40667d3e97 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -544,6 +544,13 @@ class Reline::LineEditor @dialog_contents = @dialog_contents[0...DIALOG_HEIGHT] if @dialog_contents.size > DIALOG_HEIGHT @dialog_contents_width = @dialog_contents.map{ |c| calculate_width(c) } else + @dialog_lines_backup = { + lines: modify_lines(whole_lines), + line_index: @line_index, + first_line_started_from: @first_line_started_from, + started_from: @started_from, + byte_pointer: @byte_pointer + } clear_dialog @dialog_contents = nil return |
