2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 11:13:24 +00:00

fix(readline): input getting cut off on enter

This commit is contained in:
TorchedSammy 2022-04-18 22:36:54 -04:00
parent 1e48a3e03d
commit 48cb62282d
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -868,6 +868,8 @@ func (rl *Instance) escapeSeq(r []rune) {
} }
func (rl *Instance) carridgeReturn() { func (rl *Instance) carridgeReturn() {
rl.moveCursorByAdjust(len(rl.line))
rl.updateHelpers()
rl.clearHelpers() rl.clearHelpers()
print("\r\n") print("\r\n")
if rl.HistoryAutoWrite { if rl.HistoryAutoWrite {