0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1555: NOT_IN_POPUP_WINDOW is confusing

Problem:    NOT_IN_POPUP_WINDOW is confusing. (Andy Massimino)
Solution:   Rename to ERROR_IF_POPUP_WINDOW().
This commit is contained in:
Bram Moolenaar
2019-06-16 15:50:45 +02:00
parent 1c196e7b17
commit 8cdbd5b3c4
7 changed files with 18 additions and 15 deletions

View File

@@ -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