mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 18:28:19 +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:
@@ -1637,12 +1637,22 @@ void do_autochdir(void)
|
|||||||
|
|
||||||
void no_write_message(void)
|
void no_write_message(void)
|
||||||
{
|
{
|
||||||
|
if (curbuf->terminal
|
||||||
|
&& channel_job_running((uint64_t)curbuf->b_p_channel)) {
|
||||||
|
EMSG(_("E948: Job still running (add ! to end the job)"));
|
||||||
|
} else {
|
||||||
EMSG(_("E37: No write since last change (add ! to override)"));
|
EMSG(_("E37: No write since last change (add ! to override)"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void no_write_message_nobang(void)
|
void no_write_message_nobang(void)
|
||||||
{
|
{
|
||||||
|
if (curbuf->terminal
|
||||||
|
&& channel_job_running((uint64_t)curbuf->b_p_channel)) {
|
||||||
|
EMSG(_("E948: Job still running"));
|
||||||
|
} else {
|
||||||
EMSG(_("E37: No write since last change"));
|
EMSG(_("E37: No write since last change"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user