diff options
author | 2012-07-21 12:37:00 -0400 | |
---|---|---|
committer | 2012-07-21 12:37:00 -0400 | |
commit | 03f166897801c29e9357bce3214f02502eb7f252 (patch) | |
tree | 4066fae87259848d7d488bd39871964f6fd510fa /modules/textadept/run.lua | |
parent | 5a50a7e55b870ae66a6bb69fcd3a7bd1841f3d9b (diff) | |
download | textadept-03f166897801c29e9357bce3214f02502eb7f252.tar.gz textadept-03f166897801c29e9357bce3214f02502eb7f252.zip |
Converted some `buffer` "get" and "set" functions into properties.
Also updated to Scintilla 3.2.1.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r-- | modules/textadept/run.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |