From 3f3c9838290e9d3df43d94ab389646985aa4613d Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 24 Apr 2013 09:32:10 -0400 Subject: Renamed `_G.buffer_new()` to `buffer.new()`. --- core/file_io.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/file_io.lua') 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 -- cgit v1.2.3