Commit a343ab0d authored by deuce's avatar deuce
Browse files

Copy \r\n on Win32 for line endings and \n on *nix.

parent 58439756
......@@ -120,7 +120,9 @@ void mousedrag(unsigned char *scrollback)
lastchar=outpos;
if((pos+1)%term.width==0) {
outpos=lastchar;
copybuf[outpos++]='\r';
#ifdef _WIN32
copybuf[outpos++]='\r';
#endif
copybuf[outpos++]='\n';
lastchar=outpos;
}
......
......@@ -359,7 +359,9 @@ void docopy(void)
for(x=startx-1;x<endx;x++) {
copybuf[outpos++]=screen[(y*api->scrn_width+x)*2];
}
copybuf[outpos++]='\r';
#ifdef _WIN32
copybuf[outpos++]='\r';
#endif
copybuf[outpos++]='\n';
}
copybuf[outpos]=0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment