Skip to content

fix(client): no panic on empty inspector#1768

Merged
ellie merged 3 commits into
atuinsh:mainfrom
tessus:fix/panic
Feb 26, 2024
Merged

fix(client): no panic on empty inspector#1768
ellie merged 3 commits into
atuinsh:mainfrom
tessus:fix/panic

Conversation

@tessus

@tessus tessus commented Feb 23, 2024

Copy link
Copy Markdown
Contributor

atuin no longer panics, if the inspector is invoked from an empty search window.

image

fixes #1713

Checks

  • I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle
  • I have checked that there are no existing pull requests for the same thing

Helmut K. C. Tessarek added 2 commits February 23, 2024 15:42
Although I am not that happy with this clippy rule.
I am old school and we learned to put the most likely path first.
Back then compiler optimizations were not too great and cache prediction
was better handled this way.
Comment thread atuin/src/command/client/search/interactive.rs Outdated

@ellie ellie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ellie ellie merged commit 91ddcd6 into atuinsh:main Feb 26, 2024
@tessus

This comment was marked as spam.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

atuin crashes on "Inspect" with empty history

2 participants