diff src/edit.c @ 32971:ccfca4f03a2b

Some more missing changes :(
author Christian Brabandt <cb@256bit.org>
date Wed, 23 Aug 2023 19:56:02 +0200
parents 695b50472e85
children 9c4ee9389bb4
line wrap: on
line diff
--- a/src/edit.c
+++ b/src/edit.c
@@ -3705,8 +3705,13 @@ ins_esc(
 
     State = MODE_NORMAL;
     may_trigger_modechanged();
-    // need to position cursor again when on a TAB
-    if (gchar_cursor() == TAB)
+    // need to position cursor again when on a TAB and when on a char with
+    // virtual text.
+    if (gchar_cursor() == TAB
+#ifdef FEAT_PROP_POPUP
+	    || curbuf->b_has_textprop
+#endif
+       )
 	curwin->w_valid &= ~(VALID_WROW|VALID_WCOL|VALID_VIRTCOL);
 
     setmouse();