Bugs item #1869948, was opened at 2008-01-12 15:15
Message generated for change (Comment added) made by lebert
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=1869948&group_id=11005
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Program
Group: release
Status: Open
Resolution: Accepted
Priority: 5
Private: No
Submitted By: Bert Wesarg (lebert)
Assigned to: Nobody/Anonymous (nobody)
Summary: {forward,backward}_paragraph() broken with multi blank lines
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Bert Wesarg (lebert)
Date: 2008-01-17 01:00
Message:
Logged In: YES
user_id=122956
Originator: YES
upload corrected extended-paragraph-any.patch
File Added: extended-paragraph-any.patch
----------------------------------------------------------------------
Comment By: Bert Wesarg (lebert)
Date: 2008-01-17 00:43
Message:
Logged In: YES
user_id=122956
Originator: YES
patch 3: extended-paragraph-any.patch
this extends the two functions with the "any" argument, which is mutual
exclusive with the "end" argument and uses both 'jump-points' of a
paragraph, i.e. the first line of a paragraph and the first blank line
after a paragraph
File Added: extended-paragraph-any.patch
----------------------------------------------------------------------
Comment By: Bert Wesarg (lebert)
Date: 2008-01-17 00:40
Message:
Logged In: YES
user_id=122956
Originator: YES
patch 2: extended-paragraph-end.patch
this extends the two functions with the "end" argument. which changes the
'jump-point' to the end of the paragraph, i.e. the first blank line after a
paragraph
File Added: extended-paragraph-end.patch
----------------------------------------------------------------------
Comment By: Bert Wesarg (lebert)
Date: 2008-01-17 00:25
Message:
Logged In: YES
user_id=122956
Originator: YES
second patch (actually patch series):
patch 1: extended-paragraph.patch
this uses a state machine like algorithm, which brings also back the lost
behavior (which is imho a bug by itself) from the first patch
File Added: extended-paragraph.patch
----------------------------------------------------------------------
Comment By: Bert Wesarg (lebert)
Date: 2008-01-15 19:59
Message:
Logged In: YES
user_id=122956
Originator: YES
first patch:
the only change that may be not wanted is this: if the cursor is in the
first line of a paragraph, but not at the beginning, a backward_paragraph()
goes to the prev paragraph, not to the beginning of the current.
File Added: fix-paragraph.patch
----------------------------------------------------------------------
Comment By: Thorsten Haude (yooden)
Date: 2008-01-13 14:21
Message:
Logged In: YES
user_id=119143
Originator: NO
Confirmed with Grandfather:
NEdit Version 5.1.1
March 17, 2000
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=1869948&group_id=11005
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop