patch 8.2.4018: ml_get error when win_execute redraws with Visual selection
Problem: ml_get error when win_execute redraws with Visual selection.
Solution: Disable Visual area temporarily. (closes #9479)
diff --git a/src/structs.h b/src/structs.h
index 2da16bf..1a764e1 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -4507,3 +4507,10 @@
FILTERMAP_MAPNEW
} filtermap_T;
+// Structure used by switch_win() to pass values to restore_win()
+typedef struct {
+ win_T *sw_curwin;
+ tabpage_T *sw_curtab;
+ int sw_same_win; // VIsual_active was not reset
+ int sw_visual_active;
+} switchwin_T;