mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 00:38:10 +02:00
Fix off by one when restoring cursor position after resize. Fixes #344
This commit is contained in:
@@ -245,6 +245,12 @@ class TestScreen(BaseTest):
|
||||
y = s.cursor.y
|
||||
self.assertIn('|', str(s.line(y)))
|
||||
|
||||
s = self.create_screen()
|
||||
draw('a')
|
||||
x_before = s.cursor.x
|
||||
s.resize(s.lines - 1, s.columns)
|
||||
self.ae(x_before, s.cursor.x)
|
||||
|
||||
def test_tab_stops(self):
|
||||
# Taken from vttest/main.c
|
||||
s = self.create_screen(cols=80, lines=2)
|
||||
|
||||
Reference in New Issue
Block a user