mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 00:08:04 +02:00
Fix a regression in 0.10 that caused incorrect rendering of the status bar in irssi when used inside screen.
Fixes #621. The cursor in margin check was incorrect causing upwards movement of the cursor when below the bottom margin to be incorrect.
This commit is contained in:
@@ -319,11 +319,15 @@ class TestScreen(BaseTest):
|
||||
s.reset_mode(DECOM)
|
||||
# Test that moving cursor outside the margins works as expected
|
||||
s = self.create_screen(10, 10)
|
||||
s.set_margins(5, 7)
|
||||
s.set_margins(4, 6)
|
||||
s.cursor_position(0, 0)
|
||||
self.ae(s.cursor.y, 0)
|
||||
nl()
|
||||
self.ae(s.cursor.y, 1)
|
||||
s.cursor.y = s.lines - 1
|
||||
self.ae(s.cursor.y, 9)
|
||||
s.reverse_index()
|
||||
self.ae(s.cursor.y, 8)
|
||||
|
||||
def test_sgr(self):
|
||||
s = self.create_screen()
|
||||
|
||||
Reference in New Issue
Block a user