Fixed last column issue

This commit is contained in:
luxferre
2023-07-28 07:58:12 +03:00
parent bf80c97d68
commit 3f4d3e5f15
+1 -1
View File
@@ -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 */