history.fish: Fix input handling

Pass the input to 'string', it was accidentally removed in fcdc6a48c0.
This commit is contained in:
Jaime Marquínez Ferrándiz 2016-03-02 14:26:10 +01:00
parent f2246dfb34
commit 61fd8b9861

View file

@ -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