diff options
| author | Maxime Coste <mawww@kakoune.org> | 2025-06-27 11:12:14 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2025-06-27 12:04:37 +1000 |
| commit | 5201a12010ee9ad91c99559b1756d59fdbb283d9 (patch) | |
| tree | 376c9bb99fdbc9d4bf7d74753ea3db13d85911a1 /test | |
| parent | ba41928aa7b052b037092c38a7cd6a3c05bb928e (diff) | |
Prevent changing Client's buffer while locked
If the current buffer is locked, it means we are in the middle of
creating the client or already changing the buffer, error out in this
case instead of getting into an inconsistent state.
Fixes #5338
Diffstat (limited to 'test')
3 files changed, 3 insertions, 0 deletions
diff --git a/test/regression/5338-crash-when-changing-buffer-on-WinDiplay/cmd b/test/regression/5338-crash-when-changing-buffer-on-WinDiplay/cmd new file mode 100644 index 00000000..a1a5692c --- /dev/null +++ b/test/regression/5338-crash-when-changing-buffer-on-WinDiplay/cmd @@ -0,0 +1 @@ +:e -scratch<ret><c-o> diff --git a/test/regression/5338-crash-when-changing-buffer-on-WinDiplay/in b/test/regression/5338-crash-when-changing-buffer-on-WinDiplay/in new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/regression/5338-crash-when-changing-buffer-on-WinDiplay/in @@ -0,0 +1 @@ + diff --git a/test/regression/5338-crash-when-changing-buffer-on-WinDiplay/rc b/test/regression/5338-crash-when-changing-buffer-on-WinDiplay/rc new file mode 100644 index 00000000..6240a36f --- /dev/null +++ b/test/regression/5338-crash-when-changing-buffer-on-WinDiplay/rc @@ -0,0 +1 @@ +hook global WinDisplay .* %{ edit out } |
