Do not consider a selection present if it is empty, from Michael Grant

(GitHub issue 3869). Also a typo fix from GitHub issue 3877.
This commit is contained in:
nicm
2024-03-21 11:26:28 +00:00
parent 8ffd5458ff
commit 0c374868ca
2 changed files with 14 additions and 6 deletions

View File

@ -384,7 +384,7 @@ screen_resize_y(struct screen *s, u_int sy, int eat_empty, u_int *cy)
/*
* Try to pull as much as possible out of scrolled history, if
* is is enabled.
* it is enabled.
*/
available = gd->hscrolled;
if (gd->flags & GRID_HISTORY && available > 0) {