comparison src/ex_cmds2.c @ 12146:59c1e09cf1a9 v8.0.0953

patch 8.0.0953: get "no write since last change" error in terminal window commit https://github.com/vim/vim/commit/f5be7cd01642fafc4b7d68894eb60cca60c7a405 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 17 16:55:13 2017 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Thu, 17 Aug 2017 17:00:05 +0200
parents 84066f043ab9
children bd8d767fb36f
comparison
equal deleted inserted replaced
12145:e3d303c068fc 12146:59c1e09cf1a9
1932 # endif 1932 # endif
1933 return bufIsChanged(buf); 1933 return bufIsChanged(buf);
1934 } 1934 }
1935 #endif 1935 #endif
1936 if (flags & CCGD_EXCMD) 1936 if (flags & CCGD_EXCMD)
1937 EMSG(_(e_nowrtmsg)); 1937 no_write_message();
1938 else 1938 else
1939 EMSG(_(e_nowrtmsg_nobang)); 1939 no_write_message_nobang();
1940 return TRUE; 1940 return TRUE;
1941 } 1941 }
1942 return FALSE; 1942 return FALSE;
1943 } 1943 }
1944 1944