Fix handling of tab character when cursor is at end of line and wrapping is enabled

Fixes #7250
This commit is contained in:
Kovid Goyal
2024-03-23 08:43:06 +05:30
parent af82938427
commit a0aba4da4a
3 changed files with 17 additions and 1 deletions

View File

@@ -419,6 +419,9 @@ class TestScreen(BaseTest):
s.draw('*')
s.cursor_position(2, 2)
self.ae(str(s.line(0)), '\t*'*13)
s = self.create_screen(cols=4, lines=2)
s.draw('aaaX\tbbbb')
self.ae(str(s.line(0)) + str(s.line(1)), 'aaaXbbbb')
def test_margins(self):
# Taken from vttest/main.c