Mercurial > vim
diff src/window.c @ 857:b933657f7c9d
updated for version 7.0g01
author | vimboss |
---|---|
date | Tue, 02 May 2006 22:08:30 +0000 |
parents | 8cd729851562 |
children | 99305c4c42d4 |
line wrap: on
line diff
--- a/src/window.c +++ b/src/window.c @@ -3491,6 +3491,18 @@ goto_tabpage(n) tabpage_T *ttp; int i; + if (text_locked()) + { + /* Not allowed when editing the command line. */ +#ifdef FEAT_CMDWIN + if (cmdwin_type != 0) + EMSG(_(e_cmdwin)); + else +#endif + EMSG(_(e_secure)); + return; + } + /* If there is only one it can't work. */ if (first_tabpage->tp_next == NULL) {