diff options
author | pommicket <pommicket@gmail.com> | 2022-07-22 15:04:23 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-07-22 15:04:23 -0400 |
commit | d424dcbfd9586d5cf587e2cfb643e307b9d5e1bd (patch) | |
tree | 48701a8bfcc0d4f6c985da1ffb83f0e5e1606d10 /menu.c | |
parent | 0b58ebbea977f34c5192ae6f0caec31f66749e9e (diff) |
update windows installer
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |