Skip to content

Paragraph motions should ignore whitespace #222

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Insert text with paragraphs separated by lines consisting of a single space 
character.
2. Use { and } to skip between paragraphs.

What is the expected output? What do you see instead?

The { and } motions should stop at the whitespace only lines. This is 
consistent with the paragraph text-object which delimits paragraphs with 
whitespace only lines.

What version of the product are you using? On what operating system?

7.4, Linux

Please provide any additional information below.

Wrapping the ml_get() call in startPS() (in search.c) with skipwhite() fixes 
the problem. If we're worried about backward compatibility perhaps a flag could 
be used to turn this behavior on.

Original issue reported on code.google.com by matthewe...@gmail.com on 8 May 2014 at 9:17

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions