diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-06-14 04:38:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-14 04:38:41 -0700 |
commit | fdbb5a8f727c8fa2f84f6ae3952598a25db37cb3 (patch) | |
tree | a5153aeadf1bae34dc775fb01186acab745e4ccc /src/nvim/buffer.c | |
parent | a0496e3b76e417ed718f72665d3c3f99a385367d (diff) | |
parent | 18b031ea1d3830c8ff25f4d5ee488f68f464dbee (diff) | |
download | rneovim-fdbb5a8f727c8fa2f84f6ae3952598a25db37cb3.tar.gz rneovim-fdbb5a8f727c8fa2f84f6ae3952598a25db37cb3.tar.bz2 rneovim-fdbb5a8f727c8fa2f84f6ae3952598a25db37cb3.zip |
Merge #10208 from janlazo/vim-8.0.0931
vim-patch:8.0.{931,933,953}
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 52dc359716..cae053f015 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -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 // |