summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-01 14:15:52 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-01 14:15:52 +0200
commit815b76bff618c07226653e11f29c4d3c5640b63a (patch)
treefbe1ffe3d0c5d15914bf9e7aaee5bc007e9390ab /src/macros.h
parent3a97bb3f0f8bd118ae23f1c97e55d84ff42eef20 (diff)
downloadvim-git-815b76bff618c07226653e11f29c4d3c5640b63a.tar.gz
patch 8.1.1438: some commands cause trouble in a popup windowv8.1.1438
Problem: Some commands cause trouble in a popup window. Solution: Add NOT_IN_POPUP_WINDOW.
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h
index 8c0e04a56..0f5ab7739 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -339,3 +339,9 @@
/* Wether a command index indicates a user command. */
#define IS_USER_CMDIDX(idx) ((int)(idx) < 0)
+
+#ifdef FEAT_TEXT_PROP
+# define NOT_IN_POPUP_WINDOW not_in_popup_window()
+#else
+# define NOT_IN_POPUP_WINDOW 0
+#endif