Skip to content

Commit af8764f

Browse files
committed
textarea painter bug fix.
1 parent 76dde9b commit af8764f

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

experimental/src/processing/mode/experimental/ErrorCheckerService.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ public void run() {
243243
if (pauseThread)
244244
continue;
245245

246+
updatePaintedThingy();
247+
246248
if(textModified.get() == 0)
247249
continue;
248250

@@ -281,7 +283,7 @@ private boolean checkCode() {
281283
updateErrorTable();
282284
editor.updateErrorBar(problemsList);
283285
updateEditorStatus();
284-
updateTextAreaPainter();
286+
// updatePaintedThingy();
285287
int x = textModified.get();
286288
//System.out.println("TM " + x);
287289
if(x>=3){
@@ -673,15 +675,14 @@ synchronized public void updateErrorTable() {
673675
/**
674676
* Repaints the textarea if required
675677
*/
676-
public void updateTextAreaPainter() {
677-
// TODO: Make this function of some use
678+
public void updatePaintedThingy() {
678679
editor.getTextArea().repaint();
679680
currentTab = editor.getSketch().getCodeIndex(
680681
editor.getSketch().getCurrentCode());
681682
if (currentTab != lastTab) {
682683
lastTab = currentTab;
683-
// editor.getTextArea().repaint();
684-
// System.out.println("1 Repaint " + System.currentTimeMillis());
684+
editor.updateErrorBar(problemsList);
685+
updateEditorStatus();
685686
return;
686687
}
687688

0 commit comments

Comments
 (0)