From e835d0704af36e5e9ac50f413157a60e58eb9e6c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 25 Feb 2009 08:35:21 -0500 Subject: Add dropped directories to the list of browsers; core/ext/pm/file_browser.lua --- core/ext/pm/file_browser.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ext') diff --git a/core/ext/pm/file_browser.lua b/core/ext/pm/file_browser.lua index 5568a061..21309a21 100644 --- a/core/ext/pm/file_browser.lua +++ b/core/ext/pm/file_browser.lua @@ -97,9 +97,9 @@ textadept.events.add_handler('uri_dropped', uri = uri:gsub('%%20', ' ') -- sub back for spaces if WIN32 then uri = uri:sub(2, -1) end -- ignore leading '/' if lfs.attributes(uri).mode == 'directory' then + textadept.pm.add_browser(uri) textadept.pm.entry_text = uri textadept.pm.activate() - return end end end -- cgit v1.2.3