Closed as not planned
Closed as not planned
Description
Summary
A keybinding like
[keys.insert]
k = { j = ["normal_mode", ":write"] }
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:
2023-03-31T11:08:13.875 helix_view::document [DEBUG] id 9 modified - last saved: 0, current: 0
2023-03-31T11:08:13.875 helix_view::document [DEBUG] id 10 modified - last saved: 10, current: 10
2023-03-31T11:08:13.875 helix_view::document [DEBUG] id 7 modified - last saved: 0, current: 4
Platform
macOS
Terminal Emulator
wezterm 20230326-111934-3666303c
Helix Version
helix 23.03 (3cf0372)