mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
No OOM error condition in prep_exarg()
This commit is contained in:

committed by
Thiago de Arruda

parent
15d8f702a8
commit
4b6b9117b3
@@ -4659,10 +4659,7 @@ int buf_contents_changed(buf_T *buf)
|
||||
return TRUE;
|
||||
|
||||
/* Force the 'fileencoding' and 'fileformat' to be equal. */
|
||||
if (prep_exarg(&ea, buf) == FAIL) {
|
||||
wipe_buffer(newbuf, FALSE);
|
||||
return TRUE;
|
||||
}
|
||||
prep_exarg(&ea, buf);
|
||||
|
||||
/* set curwin/curbuf to buf and save a few things */
|
||||
aucmd_prepbuf(&aco, newbuf);
|
||||
|
Reference in New Issue
Block a user