Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/tty/reader/line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def prompt_display_width

# return the length of each line + screen width for every line
# past the first which accounts for multi-line prompts
lines.join.length + ((lines.length - 1) * TTY::Screen.width)
lines.last.length + ((lines.length - 1) * TTY::Screen.width)
end

# Check if line is in edit mode
Expand Down