aboutsummaryrefslogtreecommitdiff
path: root/core/ext/pm/modules_browser.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-07-08 19:14:33 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2009-07-08 19:14:33 -0400
commit9827462bc8ac4ecc6009f2285c2397bf6ff64777 (patch)
treecc2d9b16d23a904d1107b111bf19f39ced993db1 /core/ext/pm/modules_browser.lua
parentbfef6fc70792fe002df7f8c0bfc82749fcd08152 (diff)
downloadtextadept-9827462bc8ac4ecc6009f2285c2397bf6ff64777.tar.gz
textadept-9827462bc8ac4ecc6009f2285c2397bf6ff64777.zip
Extended the event system to include project manager, find, command entry, etc.
Diffstat (limited to 'core/ext/pm/modules_browser.lua')
-rw-r--r--core/ext/pm/modules_browser.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/ext/pm/modules_browser.lua b/core/ext/pm/modules_browser.lua
index 4cbe715c..8472ee0d 100644
--- a/core/ext/pm/modules_browser.lua
+++ b/core/ext/pm/modules_browser.lua
@@ -84,8 +84,10 @@ function matches(entry_text)
end
local function modify_path(path)
- path[1] = textadept.iconv(_HOME..'/modules', 'UTF-8', _CHARSET)
- return path
+ local new_path = {}
+ for _, v in ipairs(path) do new_path[#new_path + 1] = v end
+ new_path[1] = textadept.iconv(_HOME..'/modules', 'UTF-8', _CHARSET)
+ return new_path
end
function get_contents_for(full_path)