comparison src/ex_getln.c @ 10082:7fc6103c6651 v7.4.2312

commit https://github.com/vim/vim/commit/5a49789a9b1f6447aeafbbbdd5b235dd10c471d5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 3 16:29:04 2016 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Sep 2016 16:30:06 +0200
parents 4aead6a9b7a9
children 61dc69646af6
comparison
equal deleted inserted replaced
10081:a7e347d09237 10082:7fc6103c6651
2131 * window is open or editing the cmdline in another way. 2131 * window is open or editing the cmdline in another way.
2132 */ 2132 */
2133 void 2133 void
2134 text_locked_msg(void) 2134 text_locked_msg(void)
2135 { 2135 {
2136 EMSG(_(get_text_locked_msg()));
2137 }
2138
2139 char_u *
2140 get_text_locked_msg(void)
2141 {
2136 #ifdef FEAT_CMDWIN 2142 #ifdef FEAT_CMDWIN
2137 if (cmdwin_type != 0) 2143 if (cmdwin_type != 0)
2138 EMSG(_(e_cmdwin)); 2144 return e_cmdwin;
2139 else 2145 #endif
2140 #endif 2146 return e_secure;
2141 EMSG(_(e_secure));
2142 } 2147 }
2143 2148
2144 #if defined(FEAT_AUTOCMD) || defined(PROTO) 2149 #if defined(FEAT_AUTOCMD) || defined(PROTO)
2145 /* 2150 /*
2146 * Check if "curbuf_lock" or "allbuf_lock" is set and return TRUE when it is 2151 * Check if "curbuf_lock" or "allbuf_lock" is set and return TRUE when it is