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:
Kovid Goyal
2018-06-11 10:13:21 +05:30
parent cde60b19e8
commit 7a7262923b
3 changed files with 9 additions and 2 deletions

View File

@@ -464,7 +464,7 @@ write_escape_code_to_child(Screen *self, unsigned char which, const char *data)
static inline bool
cursor_within_margins(Screen *self) {
return self->margin_top <= self->cursor->y && self->cursor->y >= self->margin_bottom;
return self->margin_top <= self->cursor->y && self->cursor->y <= self->margin_bottom;
}
void