From f5be7cd01642fafc4b7d68894eb60cca60c7a405 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 17 Aug 2017 16:55:13 +0200 Subject: 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. --- src/ex_cmds2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ex_cmds2.c') diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 8a11fbbe9f..8ca11f0663 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -1934,9 +1934,9 @@ check_changed(buf_T *buf, int flags) } #endif if (flags & CCGD_EXCMD) - EMSG(_(e_nowrtmsg)); + no_write_message(); else - EMSG(_(e_nowrtmsg_nobang)); + no_write_message_nobang(); return TRUE; } return FALSE; -- cgit v1.2.3