diff src/register.c @ 20824:b8ca32dcfabb v8.2.0964

patch 8.2.0964: TextYankPost does not provide info about Visual selection Commit: https://github.com/vim/vim/commit/37d1673ce007c46ec2338f3236ae1b7b0324bd25 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 12 22:09:01 2020 +0200 patch 8.2.0964: TextYankPost does not provide info about Visual selection Problem: TextYankPost does not provide info about Visual selection. Solution: Add the 'visual' key in v:event. (closes https://github.com/vim/vim/issues/6249)
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Jun 2020 22:15:04 +0200
parents a672feb8fc4f
children 9064044fd4f6
line wrap: on
line diff
--- a/src/register.c
+++ b/src/register.c
@@ -928,6 +928,8 @@ yank_do_autocmd(oparg_T *oap, yankreg_T 
     }
     dict_add_string(v_event, "regtype", buf);
 
+    dict_add_bool(v_event, "visual", oap->is_VIsual);
+
     // Lock the dictionary and its keys
     dict_set_items_ro(v_event);