Skip to content

Commit 9e30464

Browse files
committed
Delay setting handling_mouse to true
Otherwise, the function can return without setting it back to false.
1 parent f7f6113 commit 9e30464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/scrollview.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2789,7 +2789,6 @@ end
27892789
-- handling is for navigation (dragging scrollbars and navigating to signs).
27902790
-- If primary is false, the handling is for context (showing popups with info).
27912791
local handle_mouse = function(button, primary)
2792-
handling_mouse = true
27932792
local valid_buttons = {
27942793
'left', 'middle', 'right', 'x1', 'x2',
27952794
'c-left', 'c-middle', 'c-right', 'c-x1', 'c-x2',
@@ -2813,6 +2812,7 @@ local handle_mouse = function(button, primary)
28132812
local resume_memoize = memoize
28142813
start_memoize()
28152814
pcall(function()
2815+
handling_mouse = true
28162816
-- Re-send the click, so its position can be obtained through
28172817
-- read_input_stream().
28182818
fn.feedkeys(mousedown, 'ni')

0 commit comments

Comments
 (0)