aboutsummaryrefslogtreecommitdiff
path: root/core/file_io.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-04-10 10:04:49 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2014-04-10 10:04:49 -0400
commit2321c7ad5ab98d0be3b932f00bb91601b313cef9 (patch)
tree31d54d87b96f6d3fd949ec1634d3ea477b4b4823 /core/file_io.lua
parente96154f12bbfe50ce23b9fb7430275c276a544ec (diff)
downloadtextadept-2321c7ad5ab98d0be3b932f00bb91601b313cef9.tar.gz
textadept-2321c7ad5ab98d0be3b932f00bb91601b313cef9.zip
Fixed bug introduced by r1710 relating to absolute paths.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r--core/file_io.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 264de408..6b860e3b 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -114,7 +114,7 @@ function io.open_file(filenames)
}
if not filenames then return end
for i = 1, #filenames do
- local filename = lfs.abspath(filenames[i]:gsub('^file://', ''))
+ local filename = lfs.abspath((filenames[i]:gsub('^file://', '')))
for i, buffer in ipairs(_BUFFERS) do
if filename == buffer.filename then view:goto_buffer(i) goto continue end
end