functions/history: X is incompatible with SDMV, not C

"-C" is short for "--case-sensitive", which is entirely okay with "--delete".

The one that isn't okay is "-X", which is short for "--Clear".

Seen on gitter.im
This commit is contained in:
Fabian Homborg
2019-12-19 20:59:17 +01:00
parent ec11bd4af7
commit 22b2dbd97d

View File

@@ -16,7 +16,7 @@ end
function history --description "display or manipulate interactive command history"
set -l cmd history
set -l options --exclusive 'c,e,p' --exclusive 'S,D,M,V,C'
set -l options --exclusive 'c,e,p' --exclusive 'S,D,M,V,X'
set -a options 'h/help' 'c/contains' 'e/exact' 'p/prefix'
set -a options 'C/case-sensitive' 'R/reverse' 'z/null' 't/show-time=?' 'n#max'
# The following options are deprecated and will be removed in the next major release.