patch 8.2.0324: text property not updated correctly when inserting/deleting
Problem: Text property not updated correctly when inserting/deleting.
Solution: Use the right column when deleting. Make zero-width text
properties respect start_incl and end_incl. (Axel Forsman,
closes #5696, closes #5679)
diff --git a/src/change.c b/src/change.c
index e5ac97b..3ee7198 100644
--- a/src/change.c
+++ b/src/change.c
@@ -1301,7 +1301,7 @@
#endif
// mark the buffer as changed and prepare for displaying
- inserted_bytes(lnum, curwin->w_cursor.col, -count);
+ inserted_bytes(lnum, col, -count);
return OK;
}