From 321bcde6706af4fb2ef73e1e3de087a12be3ba8c Mon Sep 17 00:00:00 2001 From: Will Hopkins Date: Wed, 20 Mar 2024 13:50:34 -0700 Subject: [PATCH] fix: only trigger mouse drag if screenrow==1 fixes #193 --- lua/cokeline/hover.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/cokeline/hover.lua b/lua/cokeline/hover.lua index 217158e..7158c20 100644 --- a/lua/cokeline/hover.lua +++ b/lua/cokeline/hover.lua @@ -221,6 +221,10 @@ local function on_drag(pos) end M.clear_hovered() end + if pos.screenrow ~= 1 then + M.clear_dragging() + return + end if pos.dragging == "l" then local current, bufs = M.get_current(pos.screencol) if current == nil or bufs == nil or current.kind ~= "buffer" then