From a41e77df6f2d960862c4c885a04370305a54b36f Mon Sep 17 00:00:00 2001 From: Manindra Moharana Date: Tue, 15 Apr 2014 02:39:12 +0530 Subject: [PATCH] Fixes #29 --- .../mode/experimental/ErrorCheckerService.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pdex/src/processing/mode/experimental/ErrorCheckerService.java b/pdex/src/processing/mode/experimental/ErrorCheckerService.java index d908cc51a..b7fd4be69 100644 --- a/pdex/src/processing/mode/experimental/ErrorCheckerService.java +++ b/pdex/src/processing/mode/experimental/ErrorCheckerService.java @@ -978,10 +978,17 @@ public class ErrorCheckerService implements Runnable{ } } } - if (editor.ta.getCaretLine() != lastCaretLine) { + + // This line isn't an error line anymore, so probably just clear it + if (editor.getStatusMode() == EditorStatus.ERR + || editor.getStatusMode() == EditorStatus.NOTICE) { editor.statusEmpty(); - lastCaretLine = editor.ta.getCaretLine(); + return; } +// if (editor.ta.getCaretLine() != lastCaretLine) { +// editor.statusEmpty(); +// lastCaretLine = editor.ta.getCaretLine(); +// } } /**