0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.0.0953: get "no write since last change" error in terminal window

Problem:    Get "no write since last change" error in terminal window.
Solution:   Use another message when closing a terminal window. Make ":quit!"
            also end the job.
This commit is contained in:
Bram Moolenaar
2017-08-17 16:55:13 +02:00
parent a83e3962ac
commit f5be7cd016
9 changed files with 35 additions and 11 deletions

View File

@@ -267,7 +267,7 @@ term_start(typval_T *argvar, jobopt_T *opt, int forceit)
/* Create a new buffer in the current window. */
if (!can_abandon(curbuf, forceit))
{
EMSG(_(e_nowrtmsg));
no_write_message();
vim_free(term);
return;
}