diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-23 15:11:40 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-23 15:11:40 -0500 |
commit | c101b231458da51767a79fb4b92304b1c76ef5e9 (patch) | |
tree | abb11d4fd71ec2e29ba35cd1664e298ccd788f44 /menu.c | |
parent | 28403de81a1688e5a88a0052f948da66f606f0cc (diff) |
fix gcc warnings
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -54,6 +54,9 @@ static void menu_close(Ted *ted) { case MENU_GOTO_DEFINITION: tag_selector_close(ted); break; + case MENU_GOTO_LINE: + buffer_clear(&ted->line_buffer); + break; } ted->menu = MENU_NONE; ted->selector_open = NULL; @@ -211,7 +214,7 @@ static void menu_update(Ted *ted) { long line_number = strtol(contents, &end, 0); TextBuffer *buffer = ted->prev_active_buffer; if (line_number > 0 && *end == '\0' && line_number <= (long)buffer->nlines) { - BufferPos pos = {line_number - 1, 0}; + BufferPos pos = {(u32)line_number - 1, 0}; if (line_buffer->line_buffer_submitted) { // let's go there! |