mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
patch from danm for selecting the last line of code properly
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user