sl-sh-dev / sl-liner

Readline like line editor (fork of https://gitlab.redox-os.org/redox-os/liner).
MIT License
1 stars 0 forks source link

Multiline input not handled in history file correctly. #24

Open sstanfield opened 1 year ago

sstanfield commented 1 year ago

If you enter a multiline input it will initially be in history correctly. If you then exit and reload (or probably reload history in general) the former multiline input will be broken into each line in history instead of one input that it should be. Note this can involve the default '\' line ending or the multiline callback in use. Maybe use the callback (possible edge cases that could merge history?) on load or add '\' to the end of each line (should be harmless?) or do something else to the history file to denote this.