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

 
 

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

Submitted by:  None
Submitted on:  Mon 07 Mar 2016 05:12:39 AM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: Alexander Naumov <anaumov>
Open/Closed: ClosedRelease: Cur Dev Sources
Fixed Release: NonePlanned Release: 4.3.2
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by anaumov (Posted a comment)
  • -unavailable- added by mconst
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Mar 2016 08:54:01 AM UTCanaumovStatusNone=>Fixed
      Assigned toNone=>anaumov
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>4.3.2
    Mon 07 Mar 2016 05:18:38 AM UTCmconstCarbon-Copy-=>Added mconst
    Mon 07 Mar 2016 05:12:39 AM UTCNoneAttached File-=>Added 0001-fix-vi-style-search-on-long-wrapped-lines.patch, #36561

    Back to the top


    Powered by Savane 3.1-cleanup1