Fix off-by-one in code to nuke incomplete multicell chars in line

Fixes #8758
This commit is contained in:
Kovid Goyal
2025-06-27 11:35:18 +05:30
parent 8107ffcb53
commit 75f10d140f
3 changed files with 9 additions and 1 deletions

View File

@@ -308,6 +308,12 @@ def test_multicell(self: TestMulticell) -> None:
# Test delete chars with multicell (aka left shift)
s.reset()
s.draw(' 允许')
s.cursor.x = 0
s.delete_characters(1)
for x in range(4):
ac(x, 0, width=2)
s.reset()
multicell(s, 'a', width=2)
s.cursor.x = 0
s.delete_characters(1)