aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/run.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index 2694166f..561d873a 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -413,9 +413,9 @@ function M.goto_error(line_num, next)
end
if detail.message then
buffer.annotation_text[detail.line] = detail.message
- local GETNAMEDSTYLE = _SCINTILLA.properties.named_styles[1]
- local style = buffer:private_lexer_call(GETNAMEDSTYLE, 'error')
- if not detail.warning then buffer.annotation_style[detail.line] = style end
+ if not detail.warning then
+ buffer.annotation_style[detail.line] = buffer:style_of_name('error')
+ end
end
end
events.connect(events.KEYPRESS, function(code)