]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0717: Unnecessary nextcmd NULL checks in parse_command_modifiers() v9.1.0717
authorzeertzjq <zeertzjq@outlook.com>
Thu, 5 Sep 2024 15:26:30 +0000 (17:26 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 5 Sep 2024 15:26:30 +0000 (17:26 +0200)
commitf7b8609446f171a6a287f61564e39a8dac5ff47d
tree1c3dcc66bc4a0a11f11c74529f472cbfb067e031
parent233252fdf24e1c654da86220fad1b4c63c79a92d
patch 9.1.0717: Unnecessary nextcmd NULL checks in parse_command_modifiers()

Problem:  Unnecessary nextcmd NULL checks in parse_command_modifiers().
Solution: Remove them (zeertzjq)

Every place parse_command_modifiers() is called, nextcmd is NULL, and
after it's set to non-NULL the function returns very soon.
Even if one day nextcmd may be non-NULL, the NULL checks may still be
wrong as the correct behavior may be overriding nextcmd.

closes: #15620

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/ex_docmd.c
src/version.c