mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 09:31:16 -03:00
history.fish: Fix input handling
Pass the input to 'string', it was accidentally removed in fcdc6a48c0.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user