URL: <http://savannah.gnu.org/bugs/?47353>
Summary: vi-style search fails on long wrapped lines Project: GNU Screen Submitted by: None Submitted on: Mon 07 Mar 2016 05:12:39 AM UTC Category: Program Logic Severity: 3 - Normal Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Release: Cur Dev Sources Fixed Release: None Planned Release: None Work Required: None _______________________________________________________ Details: 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. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 07 Mar 2016 05:12:39 AM UTC Name: 0001-fix-vi-style-search-on-long-wrapped-lines.patch Size: 2kB By: None <http://savannah.gnu.org/bugs/download.php?file_id=36561> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?47353> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/