mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-10-22 07:15:34 +02:00
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>
17 lines
435 B
VimL
17 lines
435 B
VimL
" Vim filetype plugin file
|
|
" Language: Git revision list
|
|
" Author: Fionn Fitzmaurice (github.com/fionn)
|
|
" Maintainer: Fionn Fitzmaurice (github.com/fionn)
|
|
" License: Vim & Apache 2.0
|
|
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal comments=:#
|
|
setlocal commentstring=#\ %s
|
|
setlocal keywordprg=git\ show\ --end-of-options
|
|
|
|
let b:undo_ftplugin = "setl comments< commentstring< keywordprg<"
|