aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Minor <github@pixelverse.org>2021-11-27 20:04:47 -0800
committercukmekerb <cukmekerb@gmail.com>2021-11-27 21:44:03 -0800
commit5e6d537f8ebf3705118db59f1f409dc7015391ab (patch)
tree9296e5b9d276a4101823212cb25f7ed8fab0bdef
parente772e512d9915b39c31a1b8ed44c038f3966a6c5 (diff)
downloadlite-xl-plugins-5e6d537f8ebf3705118db59f1f409dc7015391ab.tar.gz
lite-xl-plugins-5e6d537f8ebf3705118db59f1f409dc7015391ab.zip
Don't select text when dragging in the minimap.
-rw-r--r--plugins/minimap.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/minimap.lua b/plugins/minimap.lua
index c7f72c2..b129f40 100644
--- a/plugins/minimap.lua
+++ b/plugins/minimap.lua
@@ -128,7 +128,6 @@ DocView.on_mouse_pressed = function(self, button, x, y, clicks)
-- if user didn't click on the visible area (ie not dragging), scroll accordingly
if not hit_visible_area then
self:scroll_to_line(jump_to_line, false, config.plugins.minimap.instant_scroll)
- return
end
end