Skip to content

Commit 4c6e262

Browse files
committed
fix: use getline('.') in s:RightRelease for correct plumbing
Using expand('<cWORD>') in s:RightRelease meant that s:Open received only a single word, but still with the absolute column index of the mouse click. This caused regex column matches in s:Match to fail silently. By using getline('.'), s:Open receives the full line, ensuring that column-based plumbing patterns (like URL detection) work correctly when right-clicking.
1 parent b33563f commit 4c6e262

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/acme.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ function s:RightRelease(click)
10571057
if !has('nvim')
10581058
exe "normal! \<LeftRelease>"
10591059
endif
1060-
let cmd = a:click <= 0 || s:clicksel ? s:Sel()[0] : expand('<cWORD>')
1060+
let cmd = a:click <= 0 || s:clicksel ? s:Sel()[0] : getline('.')
10611061
let vis = s:clickmode == 'v' && (a:click <= 0 || !s:clicksel)
10621062
call s:RestVisual(s:visual)
10631063
let w = win_getid()

0 commit comments

Comments
 (0)