vim-patch:9.1.0810: cannot easily adjust the |:find| command

Problem:  cannot easily adjust the |:find| command
Solution: Add support for the 'findexpr' option (Yegappan Lakshmanan)

closes: vim/vim#15901
closes: vim/vim#15905

aeb1c97db5

Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
zeertzjq
2024-10-28 15:14:15 +08:00
parent 42fa3d080e
commit 378d9135e7
19 changed files with 472 additions and 33 deletions

View File

@@ -1489,15 +1489,15 @@ char *find_file_in_path_option(char *ptr, size_t len, int options, int first, ch
if (file_name == NULL && (options & FNAME_MESS)) {
if (first == true) {
if (find_what == FINDFILE_DIR) {
semsg(_("E344: Can't find directory \"%s\" in cdpath"), *file_to_find);
semsg(_(e_cant_find_directory_str_in_cdpath), *file_to_find);
} else {
semsg(_("E345: Can't find file \"%s\" in path"), *file_to_find);
semsg(_(e_cant_find_file_str_in_path), *file_to_find);
}
} else {
if (find_what == FINDFILE_DIR) {
semsg(_("E346: No more directory \"%s\" found in cdpath"), *file_to_find);
semsg(_(e_no_more_directory_str_found_in_cdpath), *file_to_find);
} else {
semsg(_("E347: No more file \"%s\" found in path"), *file_to_find);
semsg(_(e_no_more_file_str_found_in_path), *file_to_find);
}
}
}