diff options
author | Grzegorz Milka <grzegorzmilka@gmail.com> | 2016-10-18 02:02:47 +0200 |
---|---|---|
committer | Grzegorz Milka <grzegorzmilka@gmail.com> | 2016-10-23 00:41:45 +0200 |
commit | 9755a2ffd5727c7fc0576e60a21368618978c504 (patch) | |
tree | 573e946bce3ebb9380e1a9e2d7ed461341ea16ea /src/nvim/ex_getln.c | |
parent | c5c8a821341b71ae29786c97df7930a9581f7ab7 (diff) | |
download | rneovim-9755a2ffd5727c7fc0576e60a21368618978c504.tar.gz rneovim-9755a2ffd5727c7fc0576e60a21368618978c504.tar.bz2 rneovim-9755a2ffd5727c7fc0576e60a21368618978c504.zip |
vim-patch:7.4.2312
Problem: Crash when autocommand moves to another tab. (Dominique Pelle)
Solution: When navigating to another window halfway the :edit command go
back to the right window.
https://github.com/vim/vim/commit/5a49789a9b1f6447aeafbbbdd5b235dd10c471d5
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 7444eb8a38..a58cdd5c6b 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -1688,10 +1688,14 @@ int text_locked(void) { */ void text_locked_msg(void) { + EMSG(_(get_text_locked_msg())); +} + +char_u * get_text_locked_msg(void) { if (cmdwin_type != 0) - EMSG(_(e_cmdwin)); + return e_cmdwin; else - EMSG(_(e_secure)); + return e_secure; } /* |