Skip to content
This repository has been archived by the owner on Apr 6, 2018. It is now read-only.

Fix for #689 and improve blank line handling for the ip/ap text-objects #696

Merged
merged 3 commits into from Aug 12, 2015

Conversation

MarkusSN
Copy link

@MarkusSN MarkusSN commented Jun 6, 2015

Fixes #689. Also makes the handling of blank lines, and lines that only contain whitespace more like in vim, e.g. you can now select the lines between two paragraphs by doing 'vip' .

@MarkusSN
Copy link
Author

MarkusSN commented Jun 8, 2015

Any feedback on this?

@bronson
Copy link
Contributor

bronson commented Jul 3, 2015

I think it looks great. Definitely works better now.

I notice that hitting undo after 'dap' or 'dip' leaves the cursor at the end of the deleted region. Vim leaves the cursor at the beginning of the deleted region. Might be worth opening a new issue for this though, not sure how deep this problem runs.

Ideally you'd combine some of these commits so the changes are more obvious.

@jacekkopecky
Copy link
Contributor

Seems to need rebasing please.

@MarkusSN
Copy link
Author

Refactored and rebased.

@jacekkopecky
Copy link
Contributor

please remove .swp from the commit 😎

@MarkusSN
Copy link
Author

MarkusSN commented Aug 2, 2015

Sneaky .swp removed :)

@@ -205,15 +205,36 @@ describe "TextObjects", ->
expect(editorElement.classList.contains('normal-mode')).toBe(true)

it "selects inside the current paragraph in visual mode", ->

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems to be an unnecessary empty line; with or without it I'm still recommending an immediate merge for this PR 8-)

@maxbrunsfeld
Copy link
Contributor

Great work @MarkusSN; thanks for fixing this!

maxbrunsfeld pushed a commit that referenced this pull request Aug 12, 2015
Fix for #689 and improve blank line handling for the ip/ap text-objects
@maxbrunsfeld maxbrunsfeld merged commit d63aed1 into atom:master Aug 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants