~luxferre/nne

1e4782262f4bdf412ec512ff7b9a67ddd92d2df5 — luxferre 1 year, 1 month ago 5d10082 master
Fixed total line counting
1 files changed, 0 insertions(+), 1 deletions(-)

M nne.c
M nne.c => nne.c +0 -1
@@ 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 */