diff options
author | 2009-02-25 08:35:21 -0500 | |
---|---|---|
committer | 2009-02-25 08:35:21 -0500 | |
commit | e835d0704af36e5e9ac50f413157a60e58eb9e6c (patch) | |
tree | 05ab5269a697e712f34b338320921685f5d86905 | |
parent | 997c6a1c9510b97dc980251cf4638d806dec7475 (diff) | |
download | textadept-e835d0704af36e5e9ac50f413157a60e58eb9e6c.tar.gz textadept-e835d0704af36e5e9ac50f413157a60e58eb9e6c.zip |
Add dropped directories to the list of browsers; core/ext/pm/file_browser.lua
-rw-r--r-- | core/ext/pm/file_browser.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |