diff options
-rw-r--r-- | modules/textadept/menu.lua | 2 |
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 }, |