]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0473: Pasting ". register without autocommands breaks TextPut* v9.2.0473
authorzeertzjq <zeertzjq@outlook.com>
Mon, 11 May 2026 16:49:19 +0000 (16:49 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 11 May 2026 16:49:19 +0000 (16:49 +0000)
commita70b7a85afad9dc8eeae2a97142dc744cf3205e6
treea5ff06937f99bc3e20eec34c0efed64b185475f5
parent51f1447d2a094ae0a7e1749da6e2dafe6fdc1883
patch 9.2.0473: Pasting ". register without autocommands breaks TextPut*

Problem:  Pasting ". register without TextPut* autocommands breaks
          subsequent TextPut* autocommands (after 9.2.0470).
Solution: Only decrement add_last_insert if it has been incremented
          (zeertzjq).

closes: #20192

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/register.c
src/testdir/test_autocmd.vim
src/version.c