mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
ex_cmds: Fix PVS/V547: expression was already checked in outer if()
This commit is contained in:
@@ -2022,13 +2022,13 @@ int getfile(int fnum, char_u *ffname, char_u *sfname, int setpm, linenr_T lnum,
|
|||||||
}
|
}
|
||||||
if (other && !forceit && curbuf->b_nwindows == 1 && !buf_hide(curbuf)
|
if (other && !forceit && curbuf->b_nwindows == 1 && !buf_hide(curbuf)
|
||||||
&& curbufIsChanged() && autowrite(curbuf, forceit) == FAIL) {
|
&& curbufIsChanged() && autowrite(curbuf, forceit) == FAIL) {
|
||||||
if (p_confirm && p_write)
|
if (p_confirm && p_write) {
|
||||||
dialog_changed(curbuf, FALSE);
|
dialog_changed(curbuf, false);
|
||||||
|
}
|
||||||
if (curbufIsChanged()) {
|
if (curbufIsChanged()) {
|
||||||
if (other)
|
no_wait_return--;
|
||||||
--no_wait_return;
|
|
||||||
EMSG(_(e_nowrtmsg));
|
EMSG(_(e_nowrtmsg));
|
||||||
retval = 2; /* file has been changed */
|
retval = 2; // File has been changed.
|
||||||
goto theend;
|
goto theend;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user