mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
Merge #6111 from ZyX-I/split-eval'/os-fileio
Refactor writefile() and create more tests for it
This commit is contained in:
@@ -1131,11 +1131,12 @@ static void do_filter(
|
||||
*/
|
||||
++no_wait_return; /* don't call wait_return() while busy */
|
||||
if (itmp != NULL && buf_write(curbuf, itmp, NULL, line1, line2, eap,
|
||||
FALSE, FALSE, FALSE, TRUE) == FAIL) {
|
||||
msg_putchar('\n'); /* keep message from buf_write() */
|
||||
--no_wait_return;
|
||||
if (!aborting())
|
||||
(void)EMSG2(_(e_notcreate), itmp); /* will call wait_return */
|
||||
false, false, false, true) == FAIL) {
|
||||
msg_putchar('\n'); // Keep message from buf_write().
|
||||
no_wait_return--;
|
||||
if (!aborting()) {
|
||||
EMSG2(_("E482: Can't create file %s"), itmp); // Will call wait_return.
|
||||
}
|
||||
goto filterend;
|
||||
}
|
||||
if (curbuf != old_curbuf)
|
||||
|
Reference in New Issue
Block a user