When backspacing over a line wrap, the cursor was positioned at column Width (one past the last valid column) instead of Width-1 (the last character position). This caused the overwrite space character to be printed at an invalid position, leaving the original character visible on screen while the buffer correctly had the character deleted. Fix by changing CursorRightN(b.Width) to CursorRightN(b.Width-1) in the MoveLeft and Remove functions to position at the actual last column. Fixes #13587 Signed-off-by: majiayu000 <1835304752@qq.com> |
||
|---|---|---|
| .. | ||
| buffer.go | ||
| errors.go | ||
| history.go | ||
| readline.go | ||
| readline_unix.go | ||
| readline_windows.go | ||
| term.go | ||
| term_bsd.go | ||
| term_linux.go | ||
| term_windows.go | ||
| types.go | ||