diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-09-03 16:29:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-09-03 16:29:04 +0200 |
commit | 5a49789a9b1f6447aeafbbbdd5b235dd10c471d5 (patch) | |
tree | 611853ba4f58cc676cffdfdf622dad348372c269 /src/ex_getln.c | |
parent | dd905a2ae14bf2ee59a068f1c3acbca1ff0b7067 (diff) |
patch 7.4.2312v7.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.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 110a95afd6..1627ee74f7 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -2133,12 +2133,17 @@ text_locked(void) void text_locked_msg(void) { + EMSG(_(get_text_locked_msg())); +} + + char_u * +get_text_locked_msg(void) +{ #ifdef FEAT_CMDWIN if (cmdwin_type != 0) - EMSG(_(e_cmdwin)); - else + return e_cmdwin; #endif - EMSG(_(e_secure)); + return e_secure; } #if defined(FEAT_AUTOCMD) || defined(PROTO) |