ollama/readline
majiayu000 9ef7d88e8f fix: correct cursor positioning when backspacing over line wrap
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>
2026-01-02 07:01:39 +08:00
..
buffer.go fix: correct cursor positioning when backspacing over line wrap 2026-01-02 07:01:39 +08:00
errors.go lint 2024-08-01 17:06:06 -07:00
history.go chore: upgrade to gods v2 2024-12-21 00:05:16 -08:00
readline.go cli: adding support ctrl-n/p like general cli (#9136) 2025-03-12 08:51:56 -07:00
readline_unix.go stdin.fd 2024-06-04 11:13:30 -07:00
readline_windows.go stdin.fd 2024-06-04 11:13:30 -07:00
term.go stdin.fd 2024-06-04 11:13:30 -07:00
term_bsd.go stdin.fd 2024-06-04 11:13:30 -07:00
term_linux.go lint 2024-08-01 17:06:06 -07:00
term_windows.go stdin.fd 2024-06-04 11:13:30 -07:00
types.go add thinking support to the api and cli (#10584) 2025-05-28 19:38:52 -07:00