summaryrefslogtreecommitdiff
path: root/pico
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2019-10-29 23:23:42 -0600
committerEduardo Chappa <chappa@washington.edu>2019-10-29 23:23:42 -0600
commitc4a59b4ff006e55f42780340f1fdcdbffad5821c (patch)
tree58f1ec887f549b42a9699566701b7da5f2921a7f /pico
parentbb598d500bcce509fa48ee7134ae632459cf1735 (diff)
downloadalpine-c4a59b4ff006e55f42780340f1fdcdbffad5821c.tar.xz
* Bug in Pico, which makes Alpine (and Pico) print garbage in the screen
when a screen is resized to a large number of rows. The solution was to change the type of two variables from "signed char" to "int". Reported by Joshua Miller.
Diffstat (limited to 'pico')
-rw-r--r--pico/estruct.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pico/estruct.h b/pico/estruct.h
index 128ccaff..2d0f650c 100644
--- a/pico/estruct.h
+++ b/pico/estruct.h
@@ -187,8 +187,8 @@ typedef struct WINDOW {
int w_marko; /* Byte offset for "mark" */
struct LINE *w_imarkp; /* INTERNAL Line with "mark" */
int w_imarko; /* INTERNAL "mark" byte offset */
- signed char w_toprow; /* Origin 0 top row of window */
- signed char w_ntrows; /* # of rows of text in window */
+ int w_toprow; /* Origin 0 top row of window */
+ int w_ntrows; /* # of rows of text in window */
char w_force; /* If NZ, forcing row. */
char w_flag; /* Flags. */
} WINDOW;