Fixed total line counting

This commit is contained in:
luxferre
2023-07-30 16:56:16 +03:00
parent 5d1008256c
commit 1e4782262f
-1
View File
@@ -228,7 +228,6 @@ int nne_findscrlineno(int pos) {
if(pos > nne_real_len - 2) pos = nne_real_len - 2; /* safeguard */
for(i=0;i<pos;i++) {
if(nne_textbuf[i] == '\n') { /* newline encountered */
nne_buflines++; /* update total line count */
rc++; /* increment row */
cc = 0; /* reset column */
} else { /* increment column */