From 68d4aeaad7545ebd9554b8fe549d5cfb1bd121e6 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 9 Oct 2010 12:49:56 -0400 Subject: Remove extra slash from snapopen currentdir menu; modules/textadept/menu.lua --- modules/textadept/menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, -- cgit v1.2.3