mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
sixel: don’t go past the bottom scroll margin when sixel scrolling is disabled
When sixel scrolling is disabled (private mode 80 is off), and scroll margins have been set, XTerm seems to ignore the top margin (sixel still begins at (0,0)), but does not go past the bottom margin. This patch implements the same behavior in foot.
This commit is contained in:
parent
849427bf10
commit
1563fecc20
1 changed files with 1 additions and 1 deletions
2
sixel.c
2
sixel.c
|
|
@ -724,7 +724,7 @@ sixel_unhook(struct terminal *term)
|
|||
* When disabled, only the number of screen rows may be used. */
|
||||
int rows_avail = do_scroll
|
||||
? (term->sixel.image.height + term->cell_height - 1) / term->cell_height
|
||||
: term->rows;
|
||||
: term->scroll_region.end;
|
||||
|
||||
/* Initial sixel coordinates */
|
||||
int start_row = do_scroll ? term->grid->cursor.point.row : 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue