We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 216ec3a commit 5aaf417Copy full SHA for 5aaf417
1 file changed
filemanager-plugin/filemanager.lua
@@ -1085,14 +1085,11 @@ function onPreviousSplit(view)
1085
end
1086
1087
-- On click, open at the click's y
1088
-function preMousePress(view, event)
+function onMousePress(view)
1089
if view == tree_view then
1090
- local x, y = event:Position()
1091
- -- Fixes the y because softwrap messes with it
1092
- local new_x, new_y = tree_view:GetMouseClickLocation(x, y)
1093
-- Try to open whatever is at the click's y index
1094
-- Will go into/back dirs based on what's clicked, nothing gets expanded
1095
- try_open_at_y(new_y)
+ try_open_at_y(tree_view.Cursor.Loc.Y)
1096
-- Don't actually allow the mousepress to trigger, so we avoid highlighting stuff
1097
return false
1098
0 commit comments