Skip to content

fix: dislocation of cursor after previous_history navigation to a multiline entry #899

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blindFS
Copy link
Contributor

@blindFS blindFS commented Mar 27, 2025

Fixes this bug:

When I press ctrl-p/up to bring up this kind of command:

image

The cursor is at the end of the first line. However when I press left/right key to move the cursor, it unexpectedly jumps to the last line and executes the movement there.

After pressing left:

image

After this PR, however.

It shows the cursor directly at the end of the last line, just like selecting that entry in a history menu will do.

The same thing happens for vi normal mode.

@fdncred
Copy link
Contributor

fdncred commented Mar 27, 2025

This has annoyed me for years. Glad you fixed it.

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.

2 participants