diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-12-09 19:51:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-12-09 19:51:49 +0100 |
commit | f405c8fe85bba6dc96a68a12ab976f745fc51a38 (patch) | |
tree | 88916960c439cc73774c8c9d0d030ea33b510bbd /src/ex_cmds.c | |
parent | 620ca2da372dc9c892022faff83d363c67cc5c45 (diff) | |
download | vim-f405c8fe85bba6dc96a68a12ab976f745fc51a38.zip |
patch 8.0.1382: get "no write since last change" message if terminal is open
Problem: Get "no write since last change" message if a terminal is open.
(Fritz mehner)
Solution: Don't consider a buffer changed if it's a terminal window.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index fc5581551..cd8b0c3f5 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -1482,7 +1482,7 @@ do_shell( #endif && msg_silent == 0) FOR_ALL_BUFFERS(buf) - if (bufIsChanged(buf)) + if (bufIsChangedNotTerm(buf)) { #ifdef FEAT_GUI_MSWIN if (!winstart) |