runtime(gitrevlist): prevent interpreting keywords as options
Problem: gitrevlist's keywordprg "git show" doesn't realise that input
should never be interpreted as an option. (Note that it is in
practice impossible to pass a value that is interpreted as an
option, but this expresses intent and is defensive.)
Solution: pass --end-of-options to force input to be interpreted as
arguments.
related: #20702
closes: #21472
Signed-off-by: Fionn Fitzmaurice <git@fionn.computer>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
1 parent
342ffe6453
commit
4eae1d03e8
1 file changed
+1
-1
@@ -11,6 +11,6 @@ let b:did_ftplugin = 1
|
||||
|
||||
setlocal comments=:#
|
||||
setlocal commentstring=#\ %s
|
||||
setlocal keywordprg=git\ show
|
||||
setlocal keywordprg=git\ show\ --end-of-options
|
||||
|
||||
let b:undo_ftplugin = "setl comments< commentstring< keywordprg<"
|
||||
Reference in new issue
Block a user