Skip to content
Snippets Groups Projects
Commit fdc0a47d authored by deuce's avatar deuce
Browse files

Fix line counting with wrapped lines and CRLF format.

parent 79e8f393
No related branches found
No related tags found
No related merge requests found
......@@ -2321,7 +2321,7 @@ void showbuf(int mode, int left, int top, int width, int height, char *title, ch
k=0;
for(j=0;j<len;j++) {
k++;
if((hbuf[j]==LF) || (k>width-2-pad-pad && (hbuf[j+1]!='\n'))) {
if((hbuf[j]==LF) || (k>width-2-pad-pad && (hbuf[j+1]!='\n' && hbuf[j+1]!='\r'))) {
k=0;
lines++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment