diff options
author | SwissalpS <Luke@SwissalpS.ws> | 2020-06-26 11:37:52 +0200 |
---|---|---|
committer | SwissalpS <Luke@SwissalpS.ws> | 2020-06-26 11:37:52 +0200 |
commit | 452c77f05321cdf73294d164d4ba9c7e06292aa4 (patch) | |
tree | bc1dbcb3974f14062b14af6f2f94d25bbb766939 | |
parent | f4c7a57ed2e8c4e5b6cc39786820d160c9baab14 (diff) | |
download | lite-xl-plugins-452c77f05321cdf73294d164d4ba9c7e06292aa4.tar.gz lite-xl-plugins-452c77f05321cdf73294d164d4ba9c7e06292aa4.zip |
added click check
-rw-r--r-- | plugins/draganddropselectedtext.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/draganddropselectedtext.lua b/plugins/draganddropselectedtext.lua index 984f209..d27169d 100644 --- a/plugins/draganddropselectedtext.lua +++ b/plugins/draganddropselectedtext.lua @@ -64,7 +64,8 @@ function DocView:on_mouse_pressed(button, x, y, clicks) -- no need to proceed if not left button or has no selection if ('left' ~= button) - or not self.doc:has_selection() then + or (not self.doc:has_selection()) + or (1 < clicks) then return on_mouse_pressed(self, button, x, y, clicks) end -- convert pixel coordinates to line and column coordinates |