]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1758: Diff mode crashes when adding text property in autocommand v9.1.1758
authorzeertzjq <zeertzjq@outlook.com>
Sun, 14 Sep 2025 15:01:26 +0000 (11:01 -0400)
committerChristian Brabandt <cb@256bit.org>
Sun, 14 Sep 2025 15:01:26 +0000 (11:01 -0400)
commit46e22fd2f73b03795a5922ba07621472713eddb3
tree074ccde7ab3518a517ddc3b5c83942c49f52a398
parent1e7a288cd3e522d70ad857a0a4d0ea7797f73bae
patch 9.1.1758: Diff mode crashes when adding text property in autocommand

Problem:  Diff mode crashes when adding text property in autocommand
          (after 9.1.1557).
Solution: Only restore ML_EMPTY memline flag, ignore the others
          (zeertzjq).

fixes: #18288
closes: #18291

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/diff.c
src/testdir/dumps/Test_diff_add_prop_in_autocmd_01.dump [new file with mode: 0644]
src/testdir/test_diffmode.vim
src/version.c