comparison src/buffer.c @ 25967:46205b125fbd v8.2.3517

patch 8.2.3517: TextChanged does not trigger after TextChangedI Commit: https://github.com/vim/vim/commit/db3b44640d69ab27270691a3cab8d83cc93a0861 Author: Christian Brabandt <cb@256bit.org> Date: Sat Oct 16 11:58:55 2021 +0100 patch 8.2.3517: TextChanged does not trigger after TextChangedI Problem: TextChanged does not trigger after TextChangedI. Solution: Store the tick separately for TextChangedI. (Christian Brabandt, closes #8968, closes #8932)
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Oct 2021 13:00:04 +0200
parents a63676a1da2b
children 416237f1de22
comparison
equal deleted inserted replaced
25966:5c9d305e5f18 25967:46205b125fbd
325 save_file_ff(curbuf); // keep this fileformat 325 save_file_ff(curbuf); // keep this fileformat
326 326
327 // Set last_changedtick to avoid triggering a TextChanged autocommand right 327 // Set last_changedtick to avoid triggering a TextChanged autocommand right
328 // after it was added. 328 // after it was added.
329 curbuf->b_last_changedtick = CHANGEDTICK(curbuf); 329 curbuf->b_last_changedtick = CHANGEDTICK(curbuf);
330 curbuf->b_last_changedtick_i = CHANGEDTICK(curbuf);
330 curbuf->b_last_changedtick_pum = CHANGEDTICK(curbuf); 331 curbuf->b_last_changedtick_pum = CHANGEDTICK(curbuf);
331 332
332 // require "!" to overwrite the file, because it wasn't read completely 333 // require "!" to overwrite the file, because it wasn't read completely
333 #ifdef FEAT_EVAL 334 #ifdef FEAT_EVAL
334 if (aborting()) 335 if (aborting())