fix(readline): input getting cut off on enter

pull/143/head
TorchedSammy 2022-04-18 22:36:54 -04:00
parent 1e48a3e03d
commit 48cb62282d
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 0 deletions

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 {