int j = start;
if (j != 0) {
char ch;
- while (j-- > 0) {
- ch = document.getChar(j);
+ while (j > 0) {
+ ch = document.getChar(--j);
if (ch == '\n') {
break;
}
}
- while (j-- > 0) {
- ch = document.getChar(j);
+ while (j > 0) {
+ ch = document.getChar(--j);
if (ch == '\n') {
break;
}