0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3062: internal error when adding several text properties

Problem:    Internal error when adding several text properties.
Solution:   Do not handle text properties when deleting a line for splitting a
            data block. (closes #8466)
This commit is contained in:
Bram Moolenaar
2021-06-27 13:04:00 +02:00
parent 054794c20f
commit 4cd5c52d64
4 changed files with 31 additions and 4 deletions

View File

@@ -769,6 +769,7 @@ typedef struct memline
// Values for the flags argument of ml_delete_flags().
#define ML_DEL_MESSAGE 1 // may give a "No lines in buffer" message
#define ML_DEL_UNDO 2 // called from undo, do not update textprops
#define ML_DEL_NOPROP 4 // splitting data block, do not update textprops
// Values for the flags argument of ml_append_int().
#define ML_APPEND_NEW 1 // starting to edit a new file