#610 {forward,backward}_paragraph() broken with multi blank lines

release
open-accepted
nobody
Program (402)
5
2008-01-16
2008-01-12
Bert Wesarg
No

please try the following:

open a file with this content:

-----cut-----
1

2

3

4

5

6
-----cut-----

now position the cursor at the beginning of line 1 and consecutively press Ctrl+Down till the end of the file.
All looks good.

Now press Ctrl+Up: but the cursor takes a break on the empty line 2.

now change the file to:

-----cut-----
1

2

3

4

5

6
-----cut-----

and place the cursor again at the first line, than do the same thing as above: downward the cursor is placed before the paragraph line and upward at booth lines, the paragraph line itself and the enlty line before the paragraph and in the empty line after the first paragraph.

last test:

-----cut-----
1

2

3

4

5

6
-----cut-----

the cursor takes now the middle of the empty lines as a 'paragraph'. and up two lines in front of each paragraph.

Discussion

<< < 1 2 (Page 2 of 2)
  • Bert Wesarg
    Bert Wesarg
    2008-01-19

    Logged In: YES
    user_id=122956
    Originator: YES

    documentation added
    File Added: extended-paragraph-end.patch

     
  • Bert Wesarg
    Bert Wesarg
    2008-01-19

    Logged In: YES
    user_id=122956
    Originator: YES

    documentation added
    File Added: extended-paragraph-any.patch

     
  • Bert Wesarg
    Bert Wesarg
    2008-01-20

    Logged In: YES
    user_id=122956
    Originator: YES

    uploaded old version again, sorry
    File Added: extended-paragraph.patch

     
  • Bert Wesarg
    Bert Wesarg
    2008-01-20

     
<< < 1 2 (Page 2 of 2)