aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.h
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-06-12 16:38:31 +0200
committerbfredl <bjorn.linse@gmail.com>2022-06-12 19:45:39 +0200
commit0d63fafcda3847a6ec8a9da42db7bf10ac917d14 (patch)
treecb641fb671a722ea6c928c8be6607242df4cd907 /src/nvim/ex_docmd.h
parenta907d6f51761a18b22495cba933de478101644f5 (diff)
downloadrneovim-0d63fafcda3847a6ec8a9da42db7bf10ac917d14.tar.gz
rneovim-0d63fafcda3847a6ec8a9da42db7bf10ac917d14.tar.bz2
rneovim-0d63fafcda3847a6ec8a9da42db7bf10ac917d14.zip
refactor(api): move command related API to separate file
Diffstat (limited to 'src/nvim/ex_docmd.h')
-rw-r--r--src/nvim/ex_docmd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.h b/src/nvim/ex_docmd.h
index dbe095ab13..7e0d3016bc 100644
--- a/src/nvim/ex_docmd.h
+++ b/src/nvim/ex_docmd.h
@@ -17,6 +17,9 @@
#define VALID_PATH 1
#define VALID_HEAD 2
+// Whether a command index indicates a user command.
+#define IS_USER_CMDIDX(idx) ((int)(idx) < 0)
+
// Structure used to save the current state. Used when executing Normal mode
// commands while in any other mode.
typedef struct {