This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Add option to ignore current line when trimming whitespace #12
Merged
Merged
Changes from 2 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f362fe6
Don't touch whitespace on the current line.
ac916ac
Add some tests!
16dcf1d
No need for the no-op line.
f05441e
Ignore whitespace regardless on current line.
ab52008
Fix off-by-one error.
f481c07
Shortcircuit instead so it's applied to markdown too.
e9e2f21
Looks like it was an Atom bug and not an off-by-one error.
ee65af4
s/ignoreCurLine/ignoreCurrentLine/
9ceaa58
Switch to using backwardsScan.
14c11a5
Give specs better names. Remove unnecessary specs.
18d642c
Actually use the correct cursor position in the specs.
8b6a11b
Add support for multiple cursors.
5961b67
Update specs for multiple cursor support.
f658ea0
Use setCursorBufferPosition() first to collapse cursors.
52bc414
Get the buffer position correct for second cursor.
0384362
The config value is automatically restored on each spec run.
6b2ee17
Cleanup ensureSingleTrailingNewline specs.
bddc6fd
Fix GFM tests.
d7dc98f
Cleanup and a broken spec.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about this instead to get rid of the empty statement?