-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fromSource behaviour when both stdin and filename (#2043)
# Description While working on highlight command, I noticed that after `format` command changes the behaviour of the `highlight` command when both `--stdin` option specified and FILENAME is provided is changed. Instead on returning the result for the `stdin` input, it started to return empty result. This PR fixes that behaviour, it will now act exactly as before introducing the changes that came with the `format` command fixes. ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) # Checklist: - [x] My code follows the style guidelines of this project - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works: - [x] smoke test
- Loading branch information
Showing
3 changed files
with
47 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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