aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/ext/pm/file_browser.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ext/pm/file_browser.lua b/core/ext/pm/file_browser.lua
index 76427146..40f14f8b 100644
--- a/core/ext/pm/file_browser.lua
+++ b/core/ext/pm/file_browser.lua
@@ -61,7 +61,7 @@ function get_context_menu(selected_item)
end
function perform_menu_action(menu_id, selected_item)
- local filepath = table.concat(selected_item, '/')
+ local filepath = table.concat(selected_item, '/'):gsub('[/\\]+', '/')
if menu_id == ID.CHANGE_DIR then
textadept.pm.entry_text = filepath
textadept.pm.activate()