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

Make paragraph forward match Vim's behavior re: whitespace. #1048

Closed
wants to merge 1 commit into from
Closed

Make paragraph forward match Vim's behavior re: whitespace. #1048

wants to merge 1 commit into from

Conversation

ewannema
Copy link

@ewannema ewannema commented Aug 4, 2016

🐛 Consecutive empty lines should not be treated as different paragraphs and
whitespace only lines are not paragraph boundaries.

http://vimdoc.sourceforge.net/htmldoc/motion.html#paragraph

I went in to fix the failing test on forward paragraph behavior and noticed that vim-mode also didn't match Vim for whitespace only line behavior. If this PR makes sense I can also take a look at backwards paragraph motion.

🐛 Consecutive empty lines should not be treated as different paragraphs and
whitespace only lines are not paragraph boundaries.

http://vimdoc.sourceforge.net/htmldoc/motion.html#paragraph
@ewannema
Copy link
Author

ewannema commented Aug 4, 2016

I updated the regular expression to handle \r\n line endings. I temporarily modified the test on my machine to validate it, but I am not sure how the project wants to handle these tests.

@ewannema ewannema closed this Sep 14, 2016
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

2 participants