bugGNU nano - Bugs: bug #45630, anchor \< isn't properly...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #45630: anchor \< isn't properly matched, but \> is

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 26 Jul 2015 08:18:04 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Fri 06 Jan 2017 12:39:35 PM UTC, comment #2: 

Fixed in git, cbf7e57e.

Benno Schulenberg <bens>
Group administrator
Tue 27 Oct 2015 04:45:15 PM UTC, comment #1: 

Well, hardly anyone will ever search for a bare anchor; if they use an anchor, it will be with one or more characters; and they will most likely not go searching for this string when it actually is just one position ahead.  So finding the anchored search string at a place that is not the start of a word is very, very unlikely.

Also, searching for the bare anchor \< is equivalent to doing Ctrl-Right or Ctrl-Left.  Why go to the trouble of doing a regex search when a single key stroke will do?

So, the severity of this bug is minor.

Benno Schulenberg <bens>
Group administrator
Sun 26 Jul 2015 08:18:04 AM UTC, original submission:  

Doing a regex search for \< will match each alphnumeric character in a document.  It will skip over whitespace and other characters, but will find each individual letter and digit, instead of just the first one in each sequence.  On the other hand, \> will correctly match only the end of each alphanumeric sequence.

The bug is most likely caused by the searching code not considering the whole current line, but acting as if the line starts at the current cursor position.  This will probably be hard to fix.

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-01-11 bens Open/ClosedOpen Closed
    2017-01-06 bens StatusIn Progress Fixed
    2017-01-04 bens StatusNone In Progress
        Assigned toNone bens
    2015-10-29 bens Assigned tobens None
        Summaryanchor \\&lt; isn\'t properly matched, but \\&gt; is anchor \< isn't properly matched, but \> is
    2015-10-27 bens Severity3 - Normal 2 - Minor
        Summaryanchor \\&lt; isn\'t properly matched, but \\&gt; is anchor \< isn't properly matched, but \> is

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code