diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-01 23:04:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-01 23:04:24 +0100 |
commit | 3c01c4a02897163996639f6f2604c68eab2bd18b (patch) | |
tree | 165e15670745d97aefa14938a2ea695acfa7327c /src/macros.h | |
parent | 284d1c24e250494cf886b3548f1ecae5ad262da9 (diff) | |
download | vim-git-3c01c4a02897163996639f6f2604c68eab2bd18b.tar.gz |
patch 8.2.0194: some commands can cause problems in terminal popupv8.2.0194
Problem: Some commands can cause problems in terminal popup.
Solution: Disallow more commands.
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/macros.h b/src/macros.h index 68e3f9756..b71946288 100644 --- a/src/macros.h +++ b/src/macros.h @@ -344,9 +344,11 @@ // Give an error in curwin is a popup window and evaluate to TRUE. #ifdef FEAT_PROP_POPUP -# define ERROR_IF_POPUP_WINDOW error_if_popup_window() +# define ERROR_IF_POPUP_WINDOW error_if_popup_window(FALSE) +# define ERROR_IF_ANY_POPUP_WINDOW error_if_popup_window(TRUE) #else # define ERROR_IF_POPUP_WINDOW 0 +# define ERROR_IF_ANY_POPUP_WINDOW 0 #endif #if defined(FEAT_PROP_POPUP) && defined(FEAT_TERMINAL) # define ERROR_IF_TERM_POPUP_WINDOW error_if_term_popup_window() |