mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-16 15:04:05 +00:00
history: fix deleting last entry
(cherry picked from commit a36ff7d143
)
This commit is contained in:
parent
8ed052079f
commit
6da36f4ae5
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ function history --description "display or manipulate interactive command histor
|
||||||
end
|
end
|
||||||
|
|
||||||
if string match -qr '^[1-9][0-9]*$' -- $i
|
if string match -qr '^[1-9][0-9]*$' -- $i
|
||||||
and test $i -lt $found_items_count
|
and test $i -le $found_items_count
|
||||||
set -a choices $i
|
set -a choices $i
|
||||||
else
|
else
|
||||||
printf (_ "Ignoring invalid history entry ID \"%s\"\n") $i
|
printf (_ "Ignoring invalid history entry ID \"%s\"\n") $i
|
||||||
|
|
Loading…
Reference in a new issue