Fix send code for newlines on Windows #114#125
Merged
Ikuyadeu merged 1 commit intoREditorSupport:masterfrom Sep 29, 2019
Merged
Fix send code for newlines on Windows #114#125Ikuyadeu merged 1 commit intoREditorSupport:masterfrom
Ikuyadeu merged 1 commit intoREditorSupport:masterfrom
Conversation
Member
|
@andycraig Thank you for your work! |
Collaborator
Author
|
@Ikuyadeu Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #114
What problem did you solve?
Currently, blank lines that end in '\r\n' (common on Windows) are treated as not being blank, and are sent to the console by
R: Run Selection/Line. This PR treats '\r' as whitespace, and so these lines are not sent to the console.How can I check this pull request (on any OS)?
Create a file
temp.Rcontaining:If 'LR' is displayed at the bottom right of the VSCode window, click on it and change the end of line sequence to 'CRLF'.
Use
R: Run Selection/Line. Onlyx <- 1is sent to the console.