Open fcoury opened 6 months ago
See https://www.javadoc.io/static/org.jline/jline/3.25.0/org/jline/reader/LineReader.Option.html#ERASE_LINE_ON_FINISH So maybe we should use an enum instead of a boolean:
enum EndMode { // TODO find a better name
Erase,
NewLine,
None,
}
I am writing a neovim clone in Rust and the unconditional
writeln()?
on thereadline_with
method makes my whole screen scroll up every time the user enters a command.I added a new
enable_newline
flag to the config, which defaults to true and created all the wrapper methods needed. Finally I changed thereadline_with
method to check the flag before issuing thewriteln
command.