diff options
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r-- | src/nvim/search.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index 1e862f10ec..a5c18bd03a 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -910,8 +910,7 @@ int searchit(win_T *win, buf_T *buf, pos_T *pos, pos_T *end_pos, Direction dir, lnum = 1; } if (!shortmess(SHM_SEARCH) && (options & SEARCH_MSG)) { - give_warning((char_u *)_(dir == BACKWARD - ? top_bot_msg : bot_top_msg), true); + give_warning(_(dir == BACKWARD ? top_bot_msg : bot_top_msg), true); } if (extra_arg != NULL) { extra_arg->sa_wrapped = true; @@ -1261,7 +1260,7 @@ int do_search(oparg_T *oap, int dirc, int search_delim, char_u *pat, long count, memset(msgbuf + pat_len, ' ', r - msgbuf); } } - msg_outtrans(msgbuf); + msg_outtrans((char *)msgbuf); msg_clr_eos(); msg_check(); @@ -1452,7 +1451,7 @@ int search_for_exact_line(buf_T *buf, pos_T *pos, Direction dir, char_u *pat) if (p_ws) { pos->lnum = buf->b_ml.ml_line_count; if (!shortmess(SHM_SEARCH)) { - give_warning((char_u *)_(top_bot_msg), true); + give_warning(_(top_bot_msg), true); } } else { pos->lnum = 1; @@ -1462,7 +1461,7 @@ int search_for_exact_line(buf_T *buf, pos_T *pos, Direction dir, char_u *pat) if (p_ws) { pos->lnum = 1; if (!shortmess(SHM_SEARCH)) { - give_warning((char_u *)_(bot_top_msg), true); + give_warning(_(bot_top_msg), true); } } else { pos->lnum = 1; @@ -4515,7 +4514,7 @@ static void cmdline_search_stat(int dirc, pos_T *pos, pos_T *cursor_pos, bool sh // keep the message even after redraw, but don't put in history msg_hist_off = true; msg_ext_set_kind("search_count"); - give_warning(msgbuf, false); + give_warning((char *)msgbuf, false); msg_hist_off = false; } } @@ -5414,8 +5413,8 @@ void find_pattern_in_path(char_u *ptr, Direction dir, size_t len, bool whole, bo if (i == max_path_depth) { break; } - if (path_full_compare(new_fname, files[i].name, - true, true) & kEqualFiles) { + if (path_full_compare((char *)new_fname, (char *)files[i].name, true, + true) & kEqualFiles) { if (type != CHECK_PATH && action == ACTION_SHOW_ALL && files[i].matched) { msg_putchar('\n'); // cursor below last one */ |