diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-10-24 20:41:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-24 20:41:39 -0700 |
commit | 4f4f5ef4fd2f54db5d527768b4b1a94f737b3834 (patch) | |
tree | 8082f1361a4447847f676e8a577d11b59fd302fd /src/nvim/ex_docmd.c | |
parent | 53b025887e28888f8dba78ff57afc001d1a6428b (diff) | |
parent | ced2a38ad4dce6898c800dd68026c7b1823e484e (diff) | |
download | rneovim-4f4f5ef4fd2f54db5d527768b4b1a94f737b3834.tar.gz rneovim-4f4f5ef4fd2f54db5d527768b4b1a94f737b3834.tar.bz2 rneovim-4f4f5ef4fd2f54db5d527768b4b1a94f737b3834.zip |
Merge #11213 from janlazo/vim-8.1.0014
vim-patch:8.1.{14,288,345,410,434,438,455}
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index ae3fb4fbfb..16751b3a53 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -10139,6 +10139,17 @@ static void ex_folddo(exarg_T *eap) ml_clearmarked(); // clear rest of the marks } +// Returns true if the supplied Ex cmdidx is for a location list command +// instead of a quickfix command. +bool is_loclist_cmd(int cmdidx) + FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT +{ + if (cmdidx < 0 || cmdidx > CMD_SIZE) { + return false; + } + return cmdnames[cmdidx].cmd_name[0] == 'l'; +} + bool get_pressedreturn(void) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { |