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

"Not in update transaction" error #1095

Open
noughtmare opened this issue Sep 4, 2018 · 0 comments
Open

"Not in update transaction" error #1095

noughtmare opened this issue Sep 4, 2018 · 0 comments

Comments

@noughtmare
Copy link
Member

To reproduce:

  1. Run a :yi command, for example :yi atBoundaryB.
  2. Input something when prompted (note that you have to go into insert mode).
  3. At the last prompt stay in insert mode right before submitting.
  4. After submitting press ESC to deactivate insert mode, this will cause the error "Not in update transaction".

Alternatively:

  1. Run :e some-directory-name.
  2. Move your cursor to a line that lists a file that is in that directory.
  3. Activate insert mode with i.
  4. Press ENTER to open the file.
  5. Deactivate insert mode with ESC, this will cause the error "Not in update transaction".

This has to do with the fact that the insert mode is activated in a different buffer than where it was deactivated.

To fix this the keymap state can be reset when switching buffers, or the update transaction can be ended when leaving a buffer and restarted when entering a buffer in insert mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant