mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
vim-patch:9.0.1132: code is indented more than needed (#21626)
Problem: Code is indented more than needed.
Solution: Use an early return to reduce indentation. (Yegappan Lakshmanan,
closes vim/vim#11769)
dc4daa3a39
Omit expand_autoload_callback(): only applies to Vim9 script.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -5171,11 +5171,13 @@ static void ex_find(exarg_T *eap)
|
||||
}
|
||||
}
|
||||
|
||||
if (fname != NULL) {
|
||||
eap->arg = fname;
|
||||
do_exedit(eap, NULL);
|
||||
xfree(fname);
|
||||
if (fname == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
eap->arg = fname;
|
||||
do_exedit(eap, NULL);
|
||||
xfree(fname);
|
||||
}
|
||||
|
||||
/// ":edit", ":badd", ":balt", ":visual".
|
||||
|
Reference in New Issue
Block a user