diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2022-05-12 16:43:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 16:43:20 +0200 |
commit | 8fba428bc6f36ae038a9286517e15b33257a1359 (patch) | |
tree | 3d0297f740c695389c65a2ab867ec03eb749ff08 /src/nvim/api/vimscript.c | |
parent | 78a1e6bc0060eec1afa7de099c4cee35ca35527f (diff) | |
download | rneovim-8fba428bc6f36ae038a9286517e15b33257a1359.tar.gz rneovim-8fba428bc6f36ae038a9286517e15b33257a1359.tar.bz2 rneovim-8fba428bc6f36ae038a9286517e15b33257a1359.zip |
fix(cmd): make :-tabmove work with modifiers (#18447)
`:tabmove` takes either an argument (`:tabmove -`) or an address (`:-tabmove`).
The code assumed that `:tabmove` is the first command on the cmdline, but that
is not the case when using additional modifiers like `:silent`.
Make the addr parsing more robust by searching the command first, then going
back to check for a potential address `-`.
Diffstat (limited to 'src/nvim/api/vimscript.c')
0 files changed, 0 insertions, 0 deletions