-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Keybinding for ["normal_mode", ":write"] doesn't remove file-modification-indicator #6513
Comments
I've looked into this and it appears that right after writing it creates a new revision because it is still in insert mode. This new revision has a different id than the id of the last changed revision, which is why the One way I managed to fix this issue is by adding |
I'd like to just mention here since it is not brought up anywhere else that for some file types (like |
I am having the same issue. When pressing C-s while in insert mode, the file does save. But the file modification indicator remains and I must use :q! to quit.
Windows Terminal - 1.18.2822.0 |
I updated my keymap to this as a temporary work around.
reference - #3501 (comment) |
Duplicate of #3501 |
Summary
A keybinding like
Will exit insert mode and write the file, but the
file-modification-indicator
will remain in the bufferline and statusline (if configured) as if the file were not saved.This appears to be specific to having the
:write
be a second command in a list, or when going from insert mode to normal mode. Key bindings that save when triggered in normal mode work as expected.Reproduction Steps
No response
Helix log
Log shows stuff like this:
Platform
macOS
Terminal Emulator
wezterm 20230326-111934-3666303c
Helix Version
helix 23.03 (3cf0372)
The text was updated successfully, but these errors were encountered: