mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-16 15:41:38 +08:00
Fix --merge hitting a case
This commit is contained in:
parent
81cdceddd3
commit
a6565bbea8
@ -34,12 +34,13 @@ function history --description "Deletes an item from history"
|
||||
set cmd clear
|
||||
case --search
|
||||
set cmd print
|
||||
case --merge
|
||||
case --
|
||||
set -e argv[$i]
|
||||
break
|
||||
case -* --*
|
||||
case "-*" "--*"
|
||||
printf ( _ "%s: invalid option -- %s\n" ) history $argv[1] >& 2
|
||||
return 1
|
||||
return
|
||||
end
|
||||
end
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user