mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
vim-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.
f5be7cd016
This commit is contained in:
@@ -1425,7 +1425,7 @@ do_buffer(
|
||||
}
|
||||
}
|
||||
if (bufIsChanged(curbuf)) {
|
||||
EMSG(_(e_nowrtmsg));
|
||||
no_write_message();
|
||||
return FAIL;
|
||||
}
|
||||
}
|
||||
@@ -1626,6 +1626,16 @@ void do_autochdir(void)
|
||||
}
|
||||
}
|
||||
|
||||
void no_write_message(void)
|
||||
{
|
||||
EMSG(_("E37: No write since last change (add ! to override)"));
|
||||
}
|
||||
|
||||
void no_write_message_nobang(void)
|
||||
{
|
||||
EMSG(_("E37: No write since last change"));
|
||||
}
|
||||
|
||||
//
|
||||
// functions for dealing with the buffer list
|
||||
//
|
||||
|
Reference in New Issue
Block a user