1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:10:04 +08:00

fix(vimchat): highlight selection on the fly

This commit is contained in:
wsdjeg 2022-05-04 10:55:18 +08:00
parent d0da73be8a
commit 3290cae39b

View File

@ -116,7 +116,7 @@ function! chat#windows#open() abort
elseif char ==# "\<LeftMouse>" elseif char ==# "\<LeftMouse>"
let mouse_left_lnum = v:mouse_lnum let mouse_left_lnum = v:mouse_lnum
let mouse_left_col = v:mouse_col let mouse_left_col = v:mouse_col
elseif char ==# "\<LeftRelease>" elseif char ==# "\<LeftRelease>" || char ==# "\x80\xfd-"
let mouse_left_release_lnum = v:mouse_lnum let mouse_left_release_lnum = v:mouse_lnum
let mouse_left_relsese_col = v:mouse_col let mouse_left_relsese_col = v:mouse_col
call s:high_pso(mouse_left_lnum, mouse_left_col, mouse_left_release_lnum, mouse_left_relsese_col) call s:high_pso(mouse_left_lnum, mouse_left_col, mouse_left_release_lnum, mouse_left_relsese_col)