aboutsummaryrefslogtreecommitdiff
path: root/core/file_io.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-04-24 09:32:10 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-04-24 09:32:10 -0400
commit3f3c9838290e9d3df43d94ab389646985aa4613d (patch)
treeb4ccaf9258676b0c09e3c8efb8898191673fb4ee /core/file_io.lua
parent9e97b8fa01638740f1ab2880a6a72bd1275c6fd6 (diff)
downloadtextadept-3f3c9838290e9d3df43d94ab389646985aa4613d.tar.gz
textadept-3f3c9838290e9d3df43d94ab389646985aa4613d.zip
Renamed `_G.buffer_new()` to `buffer.new()`.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r--core/file_io.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 7ccf7605..5314d51d 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -173,7 +173,7 @@ function io.open_file(utf8_filenames)
elseif lfs.attributes(filename) then
error(err)
end
- local buffer = new_buffer()
+ local buffer = buffer.new()
-- Tries to detect character encoding and convert text from it to UTF-8.
local encoding, encoding_bom = detect_encoding(text)
if encoding ~= 'binary' then