You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the following minimal example on Manjaro Linux / xfce4-terminal (0.8.10) or on Mac OS X 10.14.6 / Terminal
package main
import"github.com/peterh/liner"funcmain() {
line:=liner.NewLiner()
deferline.Close()
line.SetMultiLineMode(true)
for {
input, _:=line.Prompt("> ")
line.AppendHistory(input)
ifinput=="exit" {
break
}
}
}
and enter a short line, a long line which extends to a second line and then recall the first line from history with the up key and press enter, there is an additional blank line (the one before the exit) which shouldn't be there.
The prompt seems to jump one line up while going over the two line history entry which somehow creates the extra newline. If the multi line entry spans several lines you get even more blank lines.
The text was updated successfully, but these errors were encountered:
When I run the following minimal example on Manjaro Linux / xfce4-terminal (0.8.10) or on Mac OS X 10.14.6 / Terminal
and enter a short line, a long line which extends to a second line and then recall the first line from history with the up key and press enter, there is an additional blank line (the one before the exit) which shouldn't be there.
The prompt seems to jump one line up while going over the two line history entry which somehow creates the extra newline. If the multi line entry spans several lines you get even more blank lines.
The text was updated successfully, but these errors were encountered: