comparison 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
comparison
equal deleted inserted replaced
20823:9c648a5f2eda 20824:b8ca32dcfabb
925 vim_snprintf((char *)buf, sizeof(buf), "%c%ld", Ctrl_V, 925 vim_snprintf((char *)buf, sizeof(buf), "%c%ld", Ctrl_V,
926 reglen + 1); 926 reglen + 1);
927 break; 927 break;
928 } 928 }
929 dict_add_string(v_event, "regtype", buf); 929 dict_add_string(v_event, "regtype", buf);
930
931 dict_add_bool(v_event, "visual", oap->is_VIsual);
930 932
931 // Lock the dictionary and its keys 933 // Lock the dictionary and its keys
932 dict_set_items_ro(v_event); 934 dict_set_items_ro(v_event);
933 935
934 recursive = TRUE; 936 recursive = TRUE;