From 03f166897801c29e9357bce3214f02502eb7f252 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 21 Jul 2012 12:37:00 -0400 Subject: Converted some `buffer` "get" and "set" functions into properties. Also updated to Scintilla 3.2.1. --- modules/textadept/run.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/textadept/run.lua') diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index 450580c3..1ee64182 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -113,7 +113,7 @@ local function print_output(lexer, output) local filename = _VIEWS[i].buffer.filename if filename and filename:find(error_details.filename..'$') then gui.goto_view(i) - buffer:annotation_set_text(error_details.line - 1, error_details.message) + buffer.annotation_text[error_details.line - 1] = error_details.message buffer.annotation_style[error_details.line - 1] = 8 -- error_details return end @@ -191,7 +191,7 @@ function goto_error(pos, line_num) local line, message = error_details.line, error_details.message buffer:goto_line(line - 1) if message then - buffer:annotation_set_text(line - 1, message) + buffer.annotation_text[line - 1] = message buffer.annotation_style[line - 1] = 8 -- error end end -- cgit v1.2.3