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

Recalling a command in vi mode switches to insert mode without updating the prompt #10141

Closed
gretaSamsa opened this issue Dec 7, 2023 · 0 comments
Labels
Milestone

Comments

@gretaSamsa
Copy link

Recalling a command while using vi keybindings (/) causes fish to enter insert mode, but it does not update the label for the mode in the prompt (it still reads [N]).

To reproduce, enter vi keybindings and use / to recall any command. Note that the prompt still shows [N] for normal mode, but pressing a key will demonstrate fish is actually in insert mode. The cursor style is also not updated if the user has set fish_cursor_insert.

If anything has been typed, pressing escape again will cause the cursor to jump to the first column of the terminal, however it behaves as though it is on the last character and will jump to its correct position if moved.
If nothing has been entered the cursor will move back to the last character as expected.

I am using fish version 3.6.4 on a system running Ubuntu 22.04 LTS. My terminal type is xterm-256color.
Disabling third party customizations does not affect this behavior.

@faho faho added the vi-mode label Dec 10, 2023
@faho faho added this to the fish 3.7.0 milestone Dec 10, 2023
@faho faho closed this as completed in dbdef5d Dec 10, 2023
shouya pushed a commit to shouya/fish-shell that referenced this issue Dec 29, 2023
zanchey pushed a commit that referenced this issue Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants