diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-16 15:50:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-16 15:50:45 +0200 |
commit | 8cdbd5b3c4225b04536dea7523718695306b16b5 (patch) | |
tree | d7cd76c65d4489a9c76ec848c358f0876cc0c71c /src/macros.h | |
parent | 1c196e7b1742c1a50ce0d74190721acaad087f81 (diff) | |
download | vim-git-8cdbd5b3c4225b04536dea7523718695306b16b5.tar.gz |
patch 8.1.1555: NOT_IN_POPUP_WINDOW is confusingv8.1.1555
Problem: NOT_IN_POPUP_WINDOW is confusing. (Andy Massimino)
Solution: Rename to ERROR_IF_POPUP_WINDOW().
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/macros.h b/src/macros.h index 0f5ab7739..d685deafb 100644 --- a/src/macros.h +++ b/src/macros.h @@ -340,8 +340,9 @@ /* Wether a command index indicates a user command. */ #define IS_USER_CMDIDX(idx) ((int)(idx) < 0) +// Give an error in curwin is a popup window and evaluate to TRUE. #ifdef FEAT_TEXT_PROP -# define NOT_IN_POPUP_WINDOW not_in_popup_window() +# define ERROR_IF_POPUP_WINDOW error_if_popup_window() #else -# define NOT_IN_POPUP_WINDOW 0 +# define ERROR_IF_POPUP_WINDOW 0 #endif |