commit 1e4782262f4bdf412ec512ff7b9a67ddd92d2df5
parent 5d1008256c149a514e7e2aacf4440d692f3157f0
Author: luxferre <lux@ferre>
Date: Sun, 30 Jul 2023 16:56:16 +0300
Fixed total line counting
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/nne.c b/nne.c
@@ -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 */