Files
LLeMbas-TTY/termwiz/src
Mikko Perttunen 12a6b8df84 termwiz: surface: Fix cursor movement in DiffState
DiffState keeps track of a virtual cursor in order to skip emitting
cursor location changes when a previous text change has already moved
the cursor to the desired position. However, currently the code always
advances the cursor by 1 column for each added text change regardless
of the width of the text.

Fix behavior by advancing the cursor by the width of the text.
To avoid having to add a new variable, make 'self.cursor' contain
the cursor position for the next cell instead of the current cell.

In addition, add a test verifying the behavior.
2024-01-23 06:42:13 -07:00
..
2023-11-04 06:12:08 -07:00
2021-11-25 09:00:45 -07:00
2023-07-16 07:02:12 -07:00
2023-04-07 17:39:00 -07:00
2023-07-03 13:06:20 -07:00
2023-04-25 08:39:42 -07:00
2019-05-26 08:27:43 -07:00
2023-02-12 05:46:17 -08:00