aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-05-11 10:03:48 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-05-11 10:03:48 -0400
commitf02a7320f065fb2c4c0440176be478ee249207ce (patch)
treee9e46a427f1d3c97fe48d96e7ee25c12c53c1ffe /core
parent0b121adc28091a47fdca3de23b6a20ee64da703c (diff)
downloadtextadept-f02a7320f065fb2c4c0440176be478ee249207ce.tar.gz
textadept-f02a7320f065fb2c4c0440176be478ee249207ce.zip
Ignore 'file://' prefix for filenames; core/file_io.lua
Diffstat (limited to 'core')
-rw-r--r--core/file_io.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 005d6042..60307a06 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -114,6 +114,7 @@ try_encodings = {
-- encoded.
local function open_helper(utf8_filename)
if not utf8_filename then return end
+ utf8_filename = utf8_filename:gsub('^file://', '')
for index, buffer in ipairs(textadept.buffers) do
if utf8_filename == buffer.filename then
view:goto_buffer(index)