diff options
author | Jipok <braaga@inbox.ru> | 2021-12-12 13:47:12 +0500 |
---|---|---|
committer | Jipok <braaga@inbox.ru> | 2021-12-12 13:47:12 +0500 |
commit | c883e1792a084c32ab79965c589e7f8e0e492958 (patch) | |
tree | 5059359b4dd7c5a97c4c808e4d5f6625f997d026 /plugins/ephemeral_tabs.lua | |
parent | 6cc486eee233aa6c86102e10f7bd18b7c60defe8 (diff) | |
download | lite-xl-plugins-c883e1792a084c32ab79965c589e7f8e0e492958.tar.gz lite-xl-plugins-c883e1792a084c32ab79965c589e7f8e0e492958.zip |
returns
Diffstat (limited to 'plugins/ephemeral_tabs.lua')
-rw-r--r-- | plugins/ephemeral_tabs.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/ephemeral_tabs.lua b/plugins/ephemeral_tabs.lua index 5bfba6f..e1505c3 100644 --- a/plugins/ephemeral_tabs.lua +++ b/plugins/ephemeral_tabs.lua @@ -41,10 +41,11 @@ end -- Double clicking in the TreeView makes the tab normal local TreeView_on_mouse_pressed = TreeView.on_mouse_pressed function TreeView:on_mouse_pressed(button, x, y, clicks) - TreeView_on_mouse_pressed(self, button, x, y, clicks) + local result = TreeView_on_mouse_pressed(self, button, x, y, clicks) if (clicks > 1) and (core.active_view.doc ~= nil) then core.active_view.ephemeral = false end + return result end -- Double clicking on a tab makes it normal @@ -60,6 +61,7 @@ function RootView:on_mouse_pressed(button, x, y, clicks) end return true end + return false end -- Dragging a tab makes it normal @@ -73,5 +75,5 @@ function RootView:on_mouse_released(button, x, y, ...) end end end - RootView_on_mouse_released(self, button, x, y, ...) + return RootView_on_mouse_released(self, button, x, y, ...) end |