mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
vim-patch:8.2.3613: :find test fails
Problem: :find test fails.
Solution: Put length check inside if block.
e015d99abb
This commit is contained in:
@@ -1433,11 +1433,11 @@ char_u *find_file_in_path_option(char_u *ptr, size_t len, int options, int first
|
|||||||
rel_fname = NULL;
|
rel_fname = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len == 0) {
|
if (first == true) {
|
||||||
return NULL;
|
if (len == 0) {
|
||||||
}
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (first == TRUE) {
|
|
||||||
// copy file name into NameBuff, expanding environment variables
|
// copy file name into NameBuff, expanding environment variables
|
||||||
save_char = ptr[len];
|
save_char = ptr[len];
|
||||||
ptr[len] = NUL;
|
ptr[len] = NUL;
|
||||||
|
Reference in New Issue
Block a user