]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0484: TextPutPre triggers clipboard provider callback twice v9.2.0484
authorFoxe Chen <chen.foxe@gmail.com>
Fri, 15 May 2026 15:45:11 +0000 (15:45 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 15 May 2026 15:45:11 +0000 (15:45 +0000)
commitbec23ef65c9a488959ae31e6d372f0c33abc7920
treebca992535895f6013f70b7a30eb558332932a352
parent77b8a12f8249a2f87cc2b20d8a4279da6bf5b11a
patch 9.2.0484: TextPutPre triggers clipboard provider callback twice

Problem:  TextPutPre triggers clipboard provider callback twice
          when do_put() runs autocommands that themselves request
          the clipboard.
Solution: Guard do_put() and put_do_autocmd() with
          inc_clip_provider()/dec_clip_provider() so the provider
          is queried at most once per put operation (Foxe Chen).

closes: #20215

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/register.c
src/testdir/test_eval_stuff.vim
src/version.c