Mercurial > vim
comparison src/arglist.c @ 23744:fc031340f8f9 v8.2.2413
patch 8.2.2413: crash when using :all while using a cmdline window
Commit: https://github.com/vim/vim/commit/bb4b93ed85726c3921596ca267f531c8c94d819a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 26 21:35:08 2021 +0100
patch 8.2.2413: crash when using :all while using a cmdline window
Problem: Crash when using :all while using a cmdline window. (Zdenek Dohnal)
Solution: Disallow :all from the cmdline window.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 Jan 2021 21:45:04 +0100 |
parents | a84e7abb0c92 |
children | bb2afcad503b |
comparison
equal
deleted
inserted
replaced
23743:27e3718c6836 | 23744:fc031340f8f9 |
---|---|
882 win_T *old_curwin, *last_curwin; | 882 win_T *old_curwin, *last_curwin; |
883 tabpage_T *old_curtab, *last_curtab; | 883 tabpage_T *old_curtab, *last_curtab; |
884 win_T *new_curwin = NULL; | 884 win_T *new_curwin = NULL; |
885 tabpage_T *new_curtab = NULL; | 885 tabpage_T *new_curtab = NULL; |
886 | 886 |
887 #ifdef FEAT_CMDWIN | |
888 if (cmdwin_type != 0) | |
889 { | |
890 emsg(_(e_cmdwin)); | |
891 return; | |
892 } | |
893 #endif | |
887 if (ARGCOUNT <= 0) | 894 if (ARGCOUNT <= 0) |
888 { | 895 { |
889 // Don't give an error message. We don't want it when the ":all" | 896 // Don't give an error message. We don't want it when the ":all" |
890 // command is in the .vimrc. | 897 // command is in the .vimrc. |
891 return; | 898 return; |