mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
history.fish: Fix input handling
Pass the input to 'string', it was accidentally removed in fcdc6a48c0
.
This commit is contained in:
parent
f2246dfb34
commit
61fd8b9861
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ function history --description "Deletes an item from history"
|
|||
end
|
||||
|
||||
#Following two validations could be embedded with "and" but I find the syntax kind of weird.
|
||||
if not string match -qr '^[0-9]+$'
|
||||
if not string match -qr '^[0-9]+$' $i
|
||||
printf "Invalid input: %s\n" $i
|
||||
continue
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue