diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-06-12 21:01:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-12 21:01:16 +0200 |
commit | feba56af7d032c948a78c21735502bebe45f8361 (patch) | |
tree | e8c240f53b4448aeb7352a59fcab6de58ee298fc /src/nvim/ex_docmd.h | |
parent | 2de0d6714497e4259f467516e52852c1016d5318 (diff) | |
parent | 612944c5863caabc7b71b66c9deb73a983c69803 (diff) | |
download | rneovim-feba56af7d032c948a78c21735502bebe45f8361.tar.gz rneovim-feba56af7d032c948a78c21735502bebe45f8361.tar.bz2 rneovim-feba56af7d032c948a78c21735502bebe45f8361.zip |
Merge pull request #18936 from bfredl/apioption
refactor(api): reorganize code
Diffstat (limited to 'src/nvim/ex_docmd.h')
-rw-r--r-- | src/nvim/ex_docmd.h | 3 |
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 { |