0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.1331: illegal memory access when using :ball in Visual mode

Problem:    Illegal memory access when using :ball in Visual mode.
Solution:   Stop Visual mode when using :ball. (Pavel Mayorov, closes #11923)
This commit is contained in:
Pavel Mayorov
2023-02-20 14:35:20 +00:00
committed by Bram Moolenaar
parent af93691b53
commit e1121b1394
3 changed files with 27 additions and 0 deletions

View File

@@ -5402,6 +5402,10 @@ ex_buffer_all(exarg_T *eap)
else
all = TRUE;
// Stop Visual mode, the cursor and "VIsual" may very well be invalid after
// switching to another buffer.
reset_VIsual_and_resel();
setpcmark();
#ifdef FEAT_GUI