comparison src/macros.h @ 17111:af861fccc309 v8.1.1555

patch 8.1.1555: NOT_IN_POPUP_WINDOW is confusing commit https://github.com/vim/vim/commit/8cdbd5b3c4225b04536dea7523718695306b16b5 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 16 15:50:45 2019 +0200 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().
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Jun 2019 16:00:04 +0200
parents da5f5836e90c
children 902845716069
comparison
equal deleted inserted replaced
17110:c8fde910ac10 17111:af861fccc309
338 } while (0) 338 } while (0)
339 339
340 /* Wether a command index indicates a user command. */ 340 /* Wether a command index indicates a user command. */
341 #define IS_USER_CMDIDX(idx) ((int)(idx) < 0) 341 #define IS_USER_CMDIDX(idx) ((int)(idx) < 0)
342 342
343 // Give an error in curwin is a popup window and evaluate to TRUE.
343 #ifdef FEAT_TEXT_PROP 344 #ifdef FEAT_TEXT_PROP
344 # define NOT_IN_POPUP_WINDOW not_in_popup_window() 345 # define ERROR_IF_POPUP_WINDOW error_if_popup_window()
345 #else 346 #else
346 # define NOT_IN_POPUP_WINDOW 0 347 # define ERROR_IF_POPUP_WINDOW 0
347 #endif 348 #endif