Allow backspace to wrap cursor to previous line

Fixes #8841
This commit is contained in:
Kovid Goyal
2025-07-23 08:56:54 +05:30
parent 55a2f2c55c
commit 45b2678db1
14 changed files with 87 additions and 29 deletions

View File

@@ -353,7 +353,7 @@ class TestParser(BaseTest):
s = self.create_screen()
pb = partial(self.parse_bytes_dump, s)
pb('abcde', 'abcde')
s.cursor_back(5)
s.cursor_move(5)
pb('x\033[2@y', 'x', ('screen_insert_characters', 2), 'y')
self.ae(str(s.line(0)), 'xy bc')
pb('x\033[2;7@y', 'x', ('CSI code @ has 2 > 1 parameters',), 'y')