mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
ec39e1e421
commit
dda1c8edda
@ -1433,11 +1433,11 @@ char_u *find_file_in_path_option(char_u *ptr, size_t len, int options, int first
|
||||
rel_fname = NULL;
|
||||
}
|
||||
|
||||
if (len == 0) {
|
||||
return NULL;
|
||||
}
|
||||
if (first == true) {
|
||||
if (len == 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (first == TRUE) {
|
||||
// copy file name into NameBuff, expanding environment variables
|
||||
save_char = ptr[len];
|
||||
ptr[len] = NUL;
|
||||
|
Loading…
Reference in New Issue
Block a user