diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2016-03-02 14:26:10 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2016-03-02 14:26:10 +0100 |
commit | 61fd8b98611b978d4f0e0c2d3f76ec59b544ce94 (patch) | |
tree | 65b5f1283f92cb728cf9b0ef7098140f39abb665 /share/functions/history.fish | |
parent | f2246dfb343bea19beb176fb2cc534f85513b2eb (diff) |
history.fish: Fix input handling
Pass the input to 'string', it was accidentally removed in fcdc6a48c0bbdc796975db8d0b7f32434d86d249.
Diffstat (limited to 'share/functions/history.fish')
-rw-r--r-- | share/functions/history.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/history.fish b/share/functions/history.fish index b6d8ee96..758b5ea5 100644 --- a/share/functions/history.fish +++ b/share/functions/history.fish @@ -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 |