summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-07-22 15:04:23 -0400
committerpommicket <pommicket@gmail.com>2022-07-22 15:04:23 -0400
commitd424dcbfd9586d5cf587e2cfb643e307b9d5e1bd (patch)
tree48701a8bfcc0d4f6c985da1ffb83f0e5e1606d10 /menu.c
parent0b58ebbea977f34c5192ae6f0caec31f66749e9e (diff)
update windows installer
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index dfb3db9..9e7a382 100644
--- a/menu.c
+++ b/menu.c
@@ -246,7 +246,7 @@ static void menu_update(Ted *ted) {
TextBuffer *buffer = ted->prev_active_buffer;
if (*contents != '\0' && *end == '\0') {
if (line_number < 1) line_number = 1;
- if (line_number > buffer->nlines) line_number = (long)buffer->nlines;
+ if (line_number > (long)buffer->nlines) line_number = (long)buffer->nlines;
BufferPos pos = {(u32)line_number - 1, 0};
if (line_buffer->line_buffer_submitted) {