From 020ad62aa38e87f2fe8bb5faab496e3e1ca99733 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 30 Dec 2008 19:31:34 -0500 Subject: Fixes to recognize Windows path separators. --- core/ext/pm/project_browser.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ext/pm/project_browser.lua') 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 '.. -- cgit v1.2.3