mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
*: Partial string handling refactoring
Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
This commit is contained in:
@@ -636,9 +636,8 @@ char_u *vim_findfile(void *search_ctx_arg)
|
||||
if (p_verbose >= 5) {
|
||||
verbose_enter_scroll();
|
||||
smsg("Already Searched: %s (%s)",
|
||||
stackp->ffs_fix_path, stackp->ffs_wc_path);
|
||||
/* don't overwrite this either */
|
||||
msg_puts((char_u *)"\n");
|
||||
stackp->ffs_fix_path, stackp->ffs_wc_path);
|
||||
msg_puts("\n"); // don't overwrite this either
|
||||
verbose_leave_scroll();
|
||||
}
|
||||
#endif
|
||||
@@ -650,8 +649,7 @@ char_u *vim_findfile(void *search_ctx_arg)
|
||||
verbose_enter_scroll();
|
||||
smsg("Searching: %s (%s)",
|
||||
stackp->ffs_fix_path, stackp->ffs_wc_path);
|
||||
/* don't overwrite this either */
|
||||
msg_puts((char_u *)"\n");
|
||||
msg_puts("\n"); // don't overwrite this either
|
||||
verbose_leave_scroll();
|
||||
}
|
||||
#endif
|
||||
@@ -809,10 +807,8 @@ char_u *vim_findfile(void *search_ctx_arg)
|
||||
) == FAIL) {
|
||||
if (p_verbose >= 5) {
|
||||
verbose_enter_scroll();
|
||||
smsg("Already: %s",
|
||||
file_path);
|
||||
/* don't overwrite this either */
|
||||
msg_puts((char_u *)"\n");
|
||||
smsg("Already: %s", file_path);
|
||||
msg_puts("\n"); // don't overwrite this either
|
||||
verbose_leave_scroll();
|
||||
}
|
||||
continue;
|
||||
@@ -837,8 +833,7 @@ char_u *vim_findfile(void *search_ctx_arg)
|
||||
if (p_verbose >= 5) {
|
||||
verbose_enter_scroll();
|
||||
smsg("HIT: %s", file_path);
|
||||
/* don't overwrite this either */
|
||||
msg_puts((char_u *)"\n");
|
||||
msg_puts("\n"); // don't overwrite this either
|
||||
verbose_leave_scroll();
|
||||
}
|
||||
#endif
|
||||
@@ -999,10 +994,8 @@ static ff_visited_list_hdr_T *ff_get_visited_list(char_u *filename, ff_visited_l
|
||||
#ifdef FF_VERBOSE
|
||||
if (p_verbose >= 5) {
|
||||
verbose_enter_scroll();
|
||||
smsg("ff_get_visited_list: FOUND list for %s",
|
||||
filename);
|
||||
/* don't overwrite this either */
|
||||
msg_puts((char_u *)"\n");
|
||||
smsg("ff_get_visited_list: FOUND list for %s", filename);
|
||||
msg_puts("\n"); // don't overwrite this either
|
||||
verbose_leave_scroll();
|
||||
}
|
||||
#endif
|
||||
@@ -1016,8 +1009,7 @@ static ff_visited_list_hdr_T *ff_get_visited_list(char_u *filename, ff_visited_l
|
||||
if (p_verbose >= 5) {
|
||||
verbose_enter_scroll();
|
||||
smsg("ff_get_visited_list: new list for %s", filename);
|
||||
/* don't overwrite this either */
|
||||
msg_puts((char_u *)"\n");
|
||||
msg_puts("\n"); // don't overwrite this either
|
||||
verbose_leave_scroll();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user