diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2010-10-22 17:08:41 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2010-10-22 17:08:41 -0400 |
commit | d36297a9b666e52d5a3fbf9f08b953190ac2c7db (patch) | |
tree | ab1e109dcf95651c5562f7ff7d626de2deb22910 /core | |
parent | d77271ea793a3962f4a90e81e15931810ceb7d22 (diff) |
Use '\' when opening files on WIN32; 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 89d3e5d7..df2ad3d0 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -115,6 +115,7 @@ try_encodings = { local function open_helper(utf8_filename) if not utf8_filename then return end utf8_filename = utf8_filename:gsub('^file://', '') + if WIN32 then utf8_filename = utf8_filename:gsub('/', '\\') end for index, buffer in ipairs(_BUFFERS) do if utf8_filename == buffer.filename then view:goto_buffer(index) |