diff options
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index aab20b8657..ed1e730c9c 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -192,7 +192,7 @@ class Reline::LineEditor lines.each_with_index { |line, i| prompt = '' prompt = prompt_list[i] if prompt_list and prompt_list[i] - result += calculate_height_by_width(calculate_width(prompt + line)) + result += calculate_height_by_width(calculate_width(prompt, true) + calculate_width(line)) } result end |