Mercurial > vim
comparison src/macros.h @ 19271:ebeeb4b4a1fa v8.2.0194
patch 8.2.0194: some commands can cause problems in terminal popup
Commit: https://github.com/vim/vim/commit/3c01c4a02897163996639f6f2604c68eab2bd18b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 1 23:04:24 2020 +0100
patch 8.2.0194: some commands can cause problems in terminal popup
Problem: Some commands can cause problems in terminal popup.
Solution: Disallow more commands.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Feb 2020 23:15:03 +0100 |
parents | a8a915898b35 |
children | 9e428147e4ee |
comparison
equal
deleted
inserted
replaced
19270:6eca0794f137 | 19271:ebeeb4b4a1fa |
---|---|
342 // Whether a command index indicates a user command. | 342 // Whether a command index indicates a user command. |
343 #define IS_USER_CMDIDX(idx) ((int)(idx) < 0) | 343 #define IS_USER_CMDIDX(idx) ((int)(idx) < 0) |
344 | 344 |
345 // Give an error in curwin is a popup window and evaluate to TRUE. | 345 // Give an error in curwin is a popup window and evaluate to TRUE. |
346 #ifdef FEAT_PROP_POPUP | 346 #ifdef FEAT_PROP_POPUP |
347 # define ERROR_IF_POPUP_WINDOW error_if_popup_window() | 347 # define ERROR_IF_POPUP_WINDOW error_if_popup_window(FALSE) |
348 # define ERROR_IF_ANY_POPUP_WINDOW error_if_popup_window(TRUE) | |
348 #else | 349 #else |
349 # define ERROR_IF_POPUP_WINDOW 0 | 350 # define ERROR_IF_POPUP_WINDOW 0 |
351 # define ERROR_IF_ANY_POPUP_WINDOW 0 | |
350 #endif | 352 #endif |
351 #if defined(FEAT_PROP_POPUP) && defined(FEAT_TERMINAL) | 353 #if defined(FEAT_PROP_POPUP) && defined(FEAT_TERMINAL) |
352 # define ERROR_IF_TERM_POPUP_WINDOW error_if_term_popup_window() | 354 # define ERROR_IF_TERM_POPUP_WINDOW error_if_term_popup_window() |
353 #else | 355 #else |
354 # define ERROR_IF_TERM_POPUP_WINDOW 0 | 356 # define ERROR_IF_TERM_POPUP_WINDOW 0 |