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

Ignore CRs when calculating line lengths.

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