mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-16 23:12:45 +08:00
history: fix deleting last entry
This commit is contained in:
parent
c10d00599b
commit
a36ff7d143
|
@ -174,7 +174,7 @@ function history --description "display or manipulate interactive command histor
|
|||
end
|
||||
|
||||
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
|
||||
else
|
||||
printf (_ "Ignoring invalid history entry ID \"%s\"\n") $i
|
||||
|
|
Loading…
Reference in New Issue
Block a user