Skip to content

Commit

Permalink
Use crlf when copying on Windows
Browse files Browse the repository at this point in the history
Fixes #737
  • Loading branch information
Tyriar committed Jun 29, 2017
1 parent 471e332 commit cfe22e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SelectionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class SelectionManager extends EventEmitter {
// and joining the array into a multi-line string.
const formattedResult = result.map(line => {
return line.replace(ALL_NON_BREAKING_SPACE_REGEX, ' ');
}).join('\n');
}).join(Browser.isMSWindows ? '\r\n' : '\n');

return formattedResult;
}
Expand Down

0 comments on commit cfe22e6

Please sign in to comment.