aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/run.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-03-16 19:49:05 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-03-16 19:49:05 -0400
commit874b3ef5965170d152c9e702eb7c90075e7ab418 (patch)
tree5d2045a093120259b9fa2248893a90b181b81219 /modules/textadept/run.lua
parent1f50b95c871660fc117241b703b2ee42643eea6c (diff)
downloadtextadept-874b3ef5965170d152c9e702eb7c90075e7ab418.tar.gz
textadept-874b3ef5965170d152c9e702eb7c90075e7ab418.zip
Moved individual buffer functions in `io` into `buffer`.
e.g. `io.reload_buffer()` was renamed `buffer:reload()`.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r--modules/textadept/run.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index 3b19c222..91a2e672 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -183,7 +183,7 @@ end
local function compile_or_run(filename, commands)
if filename == buffer.filename then
buffer:annotation_clear_all()
- io.save_file()
+ buffer:save()
end
local ext = filename:match('[^/\\.]+$')
local lexer = filename == buffer.filename and buffer:get_lexer() or