-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ moves back a paragraph too much if cursor at start of line #1028
Comments
That would indeed make more sense. A patch to fix this would be welcome, or I'll have a look at it myself later. |
thanks. I'd like to give it a try myself, will report back. |
the bug was introduced in Reverting the commit fixes the issue completely (with the exception of } when cursor is on the virtual EOL), and doesn't seem to have side-effects. The rationale for the commit was "ignoring blank lines". |
What happens when you have a line that only has spaces, tabs or a combination of both between the paragraphs? |
In a situation like this:
with the patch reverted: if the cursor is on |
Rather than reverting the whole commit for f55312ba, I have tested a partial revert in bde0a89. My intent with this change is that I think it maintains the point of the original commit while also trying to address this issue. Edit: |
Given the text:
if cursor is on
n
ofanother
, using{
will bring me to the blank line between the two paragraphs, as expected.But if the cursor is on
A
ofanother
, I'm brought toFirst
: I'd expect to be brought at the blank line (this is the behavior in vim, and makes more sense/is more useful).The text was updated successfully, but these errors were encountered: