mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Fix index() not working when page margins defined
This commit is contained in:
@@ -522,7 +522,7 @@ void screen_cursor_to_column(Screen *self, unsigned int column) {
|
||||
void screen_index(Screen *self) {
|
||||
// Move cursor down one line, scrolling screen if needed
|
||||
unsigned int top = self->margin_top, bottom = self->margin_bottom;
|
||||
if (self->cursor->y == self->margin_bottom) {
|
||||
if (self->cursor->y == bottom) {
|
||||
linebuf_index(self->linebuf, top, bottom);
|
||||
if (self->linebuf == self->main_linebuf) {
|
||||
// TODO: Add line to tophistorybuf
|
||||
|
||||
Reference in New Issue
Block a user