Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/tsm/tsm-screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ int tsm_screen_resize(struct tsm_screen *con, unsigned int x,
/* If there is nothing in the scrollback buffer,
* Only scroll up if the cursor would go off-screen */
if (con->cursor_y >= y) {
diff = y - con->cursor_y + 1;
diff = con->cursor_y - y + 1;
tsm_screen_scroll_up(con, diff);
move_cursor(con, con->cursor_x, y - 1);
}
Expand All @@ -796,7 +796,6 @@ int tsm_screen_resize(struct tsm_screen *con, unsigned int x,
tsm_screen_scroll_down(con, diff);
remove_from_sb(con, diff);
move_cursor(con, con->cursor_x, con->cursor_y + diff);
diff--;
}
}

Expand Down
Loading