aboutsummaryrefslogtreecommitdiff
path: root/core/ext/pm/project_browser.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2008-12-30 19:31:34 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2008-12-30 19:31:34 -0500
commit020ad62aa38e87f2fe8bb5faab496e3e1ca99733 (patch)
tree2dfb9f92124a567f0fcb9c523b3f7386f440f7c4 /core/ext/pm/project_browser.lua
parent9cb41cfba6d7f96fbdcb781c3188858e6615a2ff (diff)
downloadtextadept-020ad62aa38e87f2fe8bb5faab496e3e1ca99733.tar.gz
textadept-020ad62aa38e87f2fe8bb5faab496e3e1ca99733.zip
Fixes to recognize Windows path separators.
Diffstat (limited to 'core/ext/pm/project_browser.lua')
-rw-r--r--core/ext/pm/project_browser.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ext/pm/project_browser.lua b/core/ext/pm/project_browser.lua
index 4e96dab9..0b47a3b2 100644
--- a/core/ext/pm/project_browser.lua
+++ b/core/ext/pm/project_browser.lua
@@ -154,7 +154,7 @@ function perform_menu_action(menu_item, selected_item)
-- If the user is saving to a different folder than was selected,
-- caution them about unexpected behavior and ask to save in the
-- project root instead.
- if dir and file:match('^(.+)/') ~= dir then
+ if dir and file:match('^(.+)[/\\]') ~= dir then
local ret = cocoa_dialog( 'yesno-msgbox', {
text = 'Add to Project Root Instead?',
['informative-text'] = 'You are adding a new file to a live '..