File vim-8.0.1568-CVE-2022-0319.patch of Package vim.23083

--- vim-8.0.1568.orig/src/window.c	2022-02-03 20:50:13.633648849 +0200
+++ vim-8.0.1568/src/window.c	2022-02-08 13:08:05.189870861 +0200
@@ -1562,6 +1562,11 @@
 
     (void)win_comp_pos();		/* recompute window positions */
 
+    if (wp->w_buffer != curbuf)
+	reset_VIsual_and_resel();
+    else if (VIsual_active)
+	wp->w_cursor = curwin->w_cursor;
+
     win_enter(wp, TRUE);
     redraw_later(CLEAR);
 }
openSUSE Build Service is sponsored by