diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-05-02 22:08:30 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-05-02 22:08:30 +0000 |
commit | d68071d8da46caf46581ae55aaca241e2dbf62c3 (patch) | |
tree | aa3ff9a9d640cad7c56bc626b1dd1e53af084d67 /src/window.c | |
parent | c9b4b05b3544b434730eb218e848a1a441d5ffb2 (diff) | |
download | vim-git-d68071d8da46caf46581ae55aaca241e2dbf62c3.tar.gz |
updated for version 7.0g01
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index 7ba9e228f..09c638e0c 100644 --- 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) { |