diff options
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 84e527b08c..ddb8beaf6f 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -467,7 +467,7 @@ static void may_do_incsearch_highlighting(int firstc, int count, incsearch_state // if interrupted while searching, behave like it failed if (got_int) { - (void)vpeekc(); // remove <C-C> from input stream + vpeekc(); // remove <C-C> from input stream got_int = false; // don't abandon the command line found = 0; } else if (char_avail()) { @@ -1052,7 +1052,7 @@ static int command_line_wildchar_complete(CommandLineState *s) && !s->did_wild_list && ((wim_flags[s->wim_index] & WIM_LIST) || (p_wmnu && (wim_flags[s->wim_index] & WIM_FULL) != 0))) { - (void)showmatches(&s->xpc, p_wmnu && ((wim_flags[s->wim_index] & WIM_LIST) == 0)); + showmatches(&s->xpc, p_wmnu && ((wim_flags[s->wim_index] & WIM_LIST) == 0)); redrawcmd(); s->did_wild_list = true; } @@ -1078,9 +1078,9 @@ static int command_line_wildchar_complete(CommandLineState *s) // if interrupted while completing, behave like it failed if (got_int) { - (void)vpeekc(); // remove <C-C> from input stream + vpeekc(); // remove <C-C> from input stream got_int = false; // don't abandon the command line - (void)ExpandOne(&s->xpc, NULL, NULL, 0, WILD_FREE); + ExpandOne(&s->xpc, NULL, NULL, 0, WILD_FREE); s->xpc.xp_context = EXPAND_NOTHING; return CMDLINE_CHANGED; } @@ -1104,7 +1104,7 @@ static int command_line_wildchar_complete(CommandLineState *s) p_wmnu = p_wmnu_save; } - (void)showmatches(&s->xpc, p_wmnu && ((wim_flags[s->wim_index] & WIM_LIST) == 0)); + showmatches(&s->xpc, p_wmnu && ((wim_flags[s->wim_index] & WIM_LIST) == 0)); redrawcmd(); s->did_wild_list = true; @@ -1138,7 +1138,7 @@ static void command_line_end_wildmenu(CommandLineState *s) cmdline_pum_remove(); } if (s->xpc.xp_numfiles != -1) { - (void)ExpandOne(&s->xpc, NULL, NULL, 0, WILD_FREE); + ExpandOne(&s->xpc, NULL, NULL, 0, WILD_FREE); } s->did_wild_list = false; if (!p_wmnu || (s->c != K_UP && s->c != K_DOWN)) { @@ -1250,7 +1250,7 @@ static int command_line_execute(VimState *state, int key) // Ctrl-E: cancel the cmdline popup menu and return the original text. if (s->c == Ctrl_E || s->c == Ctrl_Y) { wild_type = (s->c == Ctrl_E) ? WILD_CANCEL : WILD_APPLY; - (void)nextwild(&s->xpc, wild_type, WILD_NO_BEEP, s->firstc != '@'); + nextwild(&s->xpc, wild_type, WILD_NO_BEEP, s->firstc != '@'); } } @@ -1419,7 +1419,7 @@ static int may_do_command_line_next_incsearch(int firstc, int count, incsearch_s if (lt(s->match_start, s->match_end)) { // start searching at the end of the match // not at the beginning of the next column - (void)decl(&t); + decl(&t); } search_flags += SEARCH_COL; } else { @@ -1447,21 +1447,21 @@ static int may_do_command_line_next_incsearch(int firstc, int count, incsearch_s // when nv_search finishes the cursor will be // put back on the match s->search_start = t; - (void)decl(&s->search_start); + decl(&s->search_start); } else if (next_match && firstc == '?') { // move just after the current match, so that // when nv_search finishes the cursor will be // put back on the match s->search_start = t; - (void)incl(&s->search_start); + incl(&s->search_start); } if (lt(t, s->search_start) && next_match) { // wrap around s->search_start = t; if (firstc == '?') { - (void)incl(&s->search_start); + incl(&s->search_start); } else { - (void)decl(&s->search_start); + decl(&s->search_start); } } @@ -2176,7 +2176,7 @@ static bool empty_pattern(char *p, int delim) magic_T magic_val = MAGIC_ON; if (n > 0) { - (void)skip_regexp_ex(p, delim, magic_isset(), NULL, NULL, &magic_val); + skip_regexp_ex(p, delim, magic_isset(), NULL, NULL, &magic_val); } else { return true; } @@ -2939,7 +2939,7 @@ char *getexline(int c, void *cookie, int indent, bool do_concat) { // When executing a register, remove ':' that's in front of each line. if (exec_from_reg && vpeekc() == ':') { - (void)vgetc(); + vgetc(); } return getcmdline(c, 1, indent, do_concat); @@ -3454,7 +3454,7 @@ void cmdline_ui_flush(void) // Put a character on the command line. Shifts the following text to the // right when "shift" is true. Used for CTRL-V, CTRL-K, etc. // "c" must be printable (fit in one display cell)! -void putcmdline(char c, int shift) +void putcmdline(char c, bool shift) { if (cmd_silent) { return; @@ -3501,7 +3501,7 @@ void unputcmdline(void) // part will be redrawn, otherwise it will not. If this function is called // twice in a row, then 'redraw' should be false and redrawcmd() should be // called afterwards. -void put_on_cmdline(const char *str, int len, int redraw) +void put_on_cmdline(const char *str, int len, bool redraw) { int i; int m; @@ -3711,7 +3711,7 @@ static bool cmdline_paste(int regname, bool literally, bool remcr) // When "literally" is true, insert literally. // When "literally" is false, insert as typed, but don't leave the command // line. -void cmdline_paste_str(const char *s, int literally) +void cmdline_paste_str(const char *s, bool literally) { if (literally) { put_on_cmdline(s, -1, true); |