aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-11-26 10:27:52 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2012-11-26 10:27:52 -0500
commit28769fc13f379d77c6c4e443df053c8c252847c4 (patch)
tree9c3b9bfd58300f5bf5d51e897bcd879f19bed46a
parentcb181f02066e1b7e15ef7a5838e011644bdf9035 (diff)
downloadtextadept-28769fc13f379d77c6c4e443df053c8c252847c4.tar.gz
textadept-28769fc13f379d77c6c4e443df053c8c252847c4.zip
Reverted r961.
-rw-r--r--core/file_io.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 6d858d81..d4f365ba 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -208,7 +208,6 @@ function io.open_file(utf8_filenames)
if file == utf8_filename then table.remove(io.recent_files, i) break end
end
table.insert(io.recent_files, 1, utf8_filename)
- lfs.chdir(utf8_filename:iconv(_CHARSET, 'UTF-8'):match('.+[/\\]') or '.')
end
end
@@ -292,7 +291,6 @@ local function save_as(buffer, utf8_filename)
buffer.filename = utf8_filename
buffer:save()
events.emit(events.FILE_SAVED_AS, utf8_filename)
- lfs.chdir(utf8_filename:iconv(_CHARSET, 'UTF-8'):match('.+[/\\]'))
end
end