diff options
author | 2013-09-15 14:41:34 -0400 | |
---|---|---|
committer | 2013-09-15 14:41:34 -0400 | |
commit | 9ccea9e562699b45ba830b8b1355571061580386 (patch) | |
tree | 0d908fa3c956254a2e3629a7398fa1c54c7863b3 /modules/textadept/adeptsense.lua | |
parent | c683ff20ef76c60cdf79df3c61f267dc3b7073ed (diff) | |
download | textadept-9ccea9e562699b45ba830b8b1355571061580386.tar.gz textadept-9ccea9e562699b45ba830b8b1355571061580386.zip |
Do not convert filenames to UTF-8; keep them in `_CHARSET`.
Diffstat (limited to 'modules/textadept/adeptsense.lua')
-rw-r--r-- | modules/textadept/adeptsense.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index 84938f24..63ee855b 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -812,7 +812,7 @@ function M.goto_ctag(sense, kind, title) if kind == M.FUNCTION or kind == M.FIELD then items[#items + 1] = kind:match('^[^#]+') -- class name end - items[#items + 1] = v[1]..':'..v[2] + items[#items + 1] = v[1]:iconv('UTF-8', _CHARSET)..':'..v[2] end local columns = {'Name', 'Location'} if kind == M.FUNCTION or kind == M.FIELD then @@ -822,7 +822,7 @@ function M.goto_ctag(sense, kind, title) '--output-column', '3') if not location then return end local path, line = location:match('^(%a?:?[^:]+):(.+)$') - io.open_file(path) + io.open_file(path:iconv(_CHARSET, 'UTF-8')) if not tonumber(line) then -- /^ ... $/ buffer.target_start, buffer.target_end = 0, buffer.length |