aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-10-09 12:49:56 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-10-09 12:49:56 -0400
commit68d4aeaad7545ebd9554b8fe549d5cfb1bd121e6 (patch)
treefec82851032fa7b2269e3af52d0b94ced4fe0443 /modules/textadept/menu.lua
parent5264c1c30f4bbfb0d394ded543aca7d37069d40b (diff)
downloadtextadept-68d4aeaad7545ebd9554b8fe549d5cfb1bd121e6.tar.gz
textadept-68d4aeaad7545ebd9554b8fe549d5cfb1bd121e6.zip
Remove extra slash from snapopen currentdir menu; modules/textadept/menu.lua
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index fb3dbc9e..1420d18d 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -450,7 +450,7 @@ local actions = {
[ID.SNAPOPEN_CURRENTDIR] = {
function()
if buffer.filename then
- m_snapopen.open(buffer.filename:match('^.+[/\\]'))
+ m_snapopen.open(buffer.filename:match('^(.+)[/\\]'))
end
end
},