bugGNU Screen - Bugs: bug #47353, vi-style search fails on long...

 
 

bug #47353: vi-style search fails on long wrapped lines

Submitter:  None
Submitted:  Mon 07 Mar 2016 05:12:39 AM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Fixed
Privacy:  Public Assigned to:  anaumov
Open/Closed:  Closed Release:  Cur Dev Sources
Fixed Release:  None Planned Release:  4.3.2
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 07 Mar 2016 08:54:01 AM UTC, comment #1: 

Hello Michael,

thank your for bugfix. It's in master now.

Cheers,
Alex

Alexander Naumov <anaumov>
Group administrator
Mon 07 Mar 2016 05:12:39 AM UTC, original submission:  

In scrollback mode, vi-style search commands sometimes fail to find text on long wrapped lines.  For example, if you have an 80-column window, and you run this:

    perl -e 'print "X" x 77, "foobar\n"'

It should print a long line that wraps in the middle of the word "foobar".  If you then enter scrollback mode and use the ? or / commands to search for "foobar", though, screen won't find it!  (It works if you do an emacs-style search with C-s or C-r, but emacs-style search is weird in a different way: it actually ignores all line breaks, not just the ones caused by line wrapping.)

I've attached a patch to fix vi-style search.  With this patch, it correctly finds text on long lines regardless of where they happen to wrap.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #36561:  0001-fix-vi-style-search-on-long-wrapped-lines.patch added by None (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by anaumov (Posted a comment)
  • -email is unavailable- added by mconst
  •  

    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.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-07 anaumov StatusNone Fixed
        Assigned toNone anaumov
        Open/ClosedOpen Closed
        Planned ReleaseNone 4.3.2
    2016-03-07 mconst Carbon-Copy- Added mconst
    2016-03-07 None Attached File- Added 0001-fix-vi-style-search-on-long-wrapped-lines.patch, #36561

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code