aboutsummaryrefslogtreecommitdiff
path: root/core/ext/pm
diff options
context:
space:
mode:
Diffstat (limited to 'core/ext/pm')
-rw-r--r--core/ext/pm/buffer_browser.lua2
-rw-r--r--core/ext/pm/project_browser.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/ext/pm/buffer_browser.lua b/core/ext/pm/buffer_browser.lua
index d894da49..6c292200 100644
--- a/core/ext/pm/buffer_browser.lua
+++ b/core/ext/pm/buffer_browser.lua
@@ -15,7 +15,7 @@ function get_contents_for()
index = string.format("%02i", index)
contents[index] = {
pixbuf = buffer.dirty and 'gtk-edit' or 'gtk-file',
- text = (buffer.filename or 'Untitled'):match('[^/]+$')
+ text = (buffer.filename or 'Untitled'):match('[^/\\]+$')
}
end
return contents
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 '..