Fixed last column issue
This commit is contained in:
@@ -182,7 +182,7 @@ int nne_findscrlineno(int pos) {
|
||||
cc = 0; /* reset column */
|
||||
} else { /* increment column */
|
||||
cc += (nne_textbuf[i] == '\t') ? NNE_TABWIDTH : 1;
|
||||
if((cc % nne_termw) >= (nne_termw - 1)) wcf++;
|
||||
if(((cc - 1) % nne_termw) >= (nne_termw - 1)) wcf++;
|
||||
}
|
||||
}
|
||||
return rc + wcf + 1; /* newlines + wraps + 1 */
|
||||
|
||||
Reference in New Issue
Block a user