From 8fc4baebb43883822ad515f1d23dcf0be58e9fce Mon Sep 17 00:00:00 2001 From: benfry Date: Mon, 23 Jun 2003 22:11:41 +0000 Subject: [PATCH] patch from danm for selecting the last line of code properly --- app/PdeEditor.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/PdeEditor.java b/app/PdeEditor.java index 663504260..3485fd248 100644 --- a/app/PdeEditor.java +++ b/app/PdeEditor.java @@ -1849,6 +1849,12 @@ afterwards, some of these steps need a cleanup function } } if (end == -1) end = len; + + // sometimes KJC claims that the line it found an error in is + // the last line in the file + 1. Just highlight the last line + // in this case. [dmose] + if (st == -1) st = len; + //System.out.println("st/end: "+st+"/"+end); textarea.select(st, end); //if (iexplorerp) {