summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-27 13:04:13 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-27 13:04:13 +0200
commitac9fb18020d7e8bf16d02d45fbb02cf47328aaf7 (patch)
tree439cf73bcd9696032bfe85cd170b0623a9dffa9a /src/macros.h
parent5431589d25e73892fcf7ad1eaca53f742c1c9303 (diff)
downloadvim-git-ac9fb18020d7e8bf16d02d45fbb02cf47328aaf7.tar.gz
patch 8.1.1210: support for user commands is spread outv8.1.1210
Problem: Support for user commands is spread out. No good reason to make user commands optional. Solution: Move user command support to usercmd.c. Always enable the user_commands feature.
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h
index 571fed0a7..8c0e04a56 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -336,3 +336,6 @@
(p) = NULL; \
} \
} while (0)
+
+/* Wether a command index indicates a user command. */
+#define IS_USER_CMDIDX(idx) ((int)(idx) < 0)