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

patch 8.1.1335: listener callback is called after inserting text

Problem:    Listener callback is called after inserting text.
Solution:   Flush the changes before inserting or deleting a line.  Store
            changes per buffer.
This commit is contained in:
Bram Moolenaar
2019-05-16 22:11:47 +02:00
parent eda652215a
commit dda4144d39
6 changed files with 131 additions and 51 deletions

View File

@@ -2439,6 +2439,7 @@ struct file_buffer
dict_T *b_vars; /* internal variables, local to buffer */
listener_T *b_listener;
list_T *b_recorded_changes;
#endif
#ifdef FEAT_TEXT_PROP
int b_has_textprop; // TRUE when text props were added