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

:write command not working as expected #8360

Closed
curioustolearn opened this issue Sep 22, 2023 · 1 comment
Closed

:write command not working as expected #8360

curioustolearn opened this issue Sep 22, 2023 · 1 comment
Labels
C-bug Category: This is a bug

Comments

@curioustolearn
Copy link

Summary

I added the following lines to my config file

[keys.insert]
'j' = {'k' = [":write", "normal_mode"]}  ## map jk to save and exit to normal mode.

When I type the jk keys in the insert mode, the editor enters the normal mode as expected. It also shows a message that the file was written. However, the [+] symbol in the modeline does not go away. When I try to close the buffer, I get a warning that there are unsaved changes. If I switch to insert mode again and then press jk again then the [+] symbol goes away, and it is as if I type :w in the normal mode.

Reproduction Steps

I tried this:

  1. Add the following lines to the config file and reload:
[keys.insert]
'j' = {'k' = [":write", "normal_mode"]}  ## map jk to save and exit to normal mode.
  1. Open a file and write something to it. Press jk.

At this point I expect the [+] symbol in the modeline to go away. But it does not. The editor goes into the normal_mode as expected.

  1. Press i to enter insert mode and then type jk again. Now, the [+] symbol goes away.

Helix log

No response

Platform

macOS

Terminal Emulator

iterm2

Helix Version

helix 23.05 (7f5940b)

@curioustolearn curioustolearn added the C-bug Category: This is a bug label Sep 22, 2023
@kirawi
Copy link
Member

kirawi commented Sep 23, 2023

Dupe of #6513

@kirawi kirawi closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants