diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-26 20:34:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-26 20:34:00 +0100 |
commit | fccbf068f8c85474db8d8dead1530321d1f3e5b8 (patch) | |
tree | 53f940fd2f9ce11dcf6fb2b688fd1eea604f3320 /src/register.c | |
parent | ce7be3a0e6f19bc85990bb8fcfe5e208944777b4 (diff) | |
download | vim-git-fccbf068f8c85474db8d8dead1530321d1f3e5b8.tar.gz |
patch 8.2.2057: getting the selection may trigger TextYankPost autocmdv8.2.2057
Problem: Getting the selection may trigger TextYankPost autocmd.
Solution: Only trigger the autocommand when yanking in Vim, not for getting
the selection. (closes #7367)
Diffstat (limited to 'src/register.c')
-rw-r--r-- | src/register.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/register.c b/src/register.c index 625150db2..6574432bd 100644 --- a/src/register.c +++ b/src/register.c @@ -322,8 +322,7 @@ put_register(int name, void *reg) #endif } -#if (defined(FEAT_CLIPBOARD) && defined(FEAT_X11) && defined(USE_SYSTEM)) \ - || defined(PROTO) +#if defined(FEAT_CLIPBOARD) || defined(PROTO) void free_register(void *reg) { |