~luxferre/nne

3f4d3e5f1569cf2bb76665e57ba1de98951e8296 — luxferre 6 months ago bf80c97
Fixed last column issue
1 files changed, 1 insertions(+), 1 deletions(-)

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