Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

history delete cannot delete last entry in list #10285

Closed
gretaSamsa opened this issue Feb 5, 2024 · 2 comments
Closed

history delete cannot delete last entry in list #10285

gretaSamsa opened this issue Feb 5, 2024 · 2 comments

Comments

@gretaSamsa
Copy link

fish version 3.7.0

When trying to delete a command from the history using history delete, it is not possible to select the last command in the search result list.

Steps to reproduce:

  1. Enter any command, for instance true.
  2. Enter history delete
  3. Enter any search term that will match commands in the history, for instance true.
  4. Enter the last number in the list.
  5. The command prints the error Ignoring invalid history entry ID "<number>" and exits with code 1.

This behavior does not occur when selecting a range, including a range like 1..1.

@gretaSamsa gretaSamsa changed the title history delete cannot delete last entry in list history delete cannot delete last entry in list Feb 5, 2024
@faho
Copy link
Member

faho commented Feb 5, 2024

Duplicate of #10189

@faho faho marked this as a duplicate of #10189 Feb 5, 2024
@faho faho closed this as completed Feb 5, 2024
@faho faho added the duplicate label Feb 5, 2024
@gretaSamsa
Copy link
Author

Sorry, I tried searching for it but forgot to check closed issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants