mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
committed by
Bram Moolenaar
parent
af93691b53
commit
e1121b1394
@@ -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
|
||||
|
Reference in New Issue
Block a user