mirror of
https://github.com/neovim/neovim.git
synced 2026-06-17 17:21:16 +00:00
refactor(excmd): remove duplicate get_cmd_argt (#39643)
Problem:
`excmd_get_argt` and `get_cmd_argt` do the same thing.
Solution:
Drop `get_cmd_argt` and update its callers to use `excmd_get_argt`.
(cherry picked from commit 1fd82615b1)
This commit is contained in:
committed by
github-actions[bot]
parent
ad27075c8d
commit
cac643f0f5
@@ -442,7 +442,7 @@ String nvim_cmd(uint64_t channel_id, Dict(cmd) *cmd, Dict(cmd_opts) *opts, Arena
|
||||
} else if (!IS_USER_CMDIDX(ea.cmdidx)) {
|
||||
// Get the command flags so that we can know what type of arguments the command uses.
|
||||
// Not required for a user command since `find_ex_command` already deals with it in that case.
|
||||
ea.argt = get_cmd_argt(ea.cmdidx);
|
||||
ea.argt = excmd_get_argt(ea.cmdidx);
|
||||
}
|
||||
|
||||
// Track whether the first argument was interpreted as count to avoid conflicts
|
||||
|
||||
Reference in New Issue
Block a user