diff options
author | 2010-05-11 10:03:48 -0400 | |
---|---|---|
committer | 2010-05-11 10:03:48 -0400 | |
commit | f02a7320f065fb2c4c0440176be478ee249207ce (patch) | |
tree | e9e46a427f1d3c97fe48d96e7ee25c12c53c1ffe /core | |
parent | 0b121adc28091a47fdca3de23b6a20ee64da703c (diff) | |
download | textadept-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.lua | 1 |
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) |