kakoune/test/regression/3909-crash-on-closing-buffer-with-user-mapping/rc
Maxime Coste 90db664635 Fix crash when deleting a buffer from a user mapping
Deleting a buffer resets normal mode on all clients that were
displaing that buffer, but ScopedForceNormalMode that are used
from user mode  do not take this possiblity into account on
destruction, which leads to deleting the last normal mode from
the context, ending up with an empty mode stack.

Fixes #3909
2022-04-12 12:49:19 +10:00

3 lines
52 B
Plaintext

edit -scratch
map global user d :delete-buffer<ret>