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

Crash on PageUp + Down or PageDown + Down with short history #520

Open
selurvedu opened this issue Jun 14, 2024 · 0 comments
Open

Crash on PageUp + Down or PageDown + Down with short history #520

selurvedu opened this issue Jun 14, 2024 · 0 comments

Comments

@selurvedu
Copy link

Prerequisites:

Your history file has to be short, so that when you invoke hstr, there should be at least two empty lines on the top.

Steps to reproduce:

  1. Run hstr.
  2. Press PageUp or PageDown. The topmost line will get highlighted.
  3. Press Down.
  4. Segmentation fault (core dumped).

Workaround:

As soon as your history becomes long enough, so there is just one empty line on the top or no empty lines at all, the segfault won't occur anymore.

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

No branches or pull requests

1 participant