[vte/vte-0-46] widget: Fix backward search



commit 398a3f836019c9364f61fbe65dc468f716d8b525
Author: Christian Persch <chpe src gnome org>
Date:   Sun Sep 18 17:05:09 2016 +0200

    widget: Fix backward search
    
    Search was getting two lines of text at once, breaking backward search.
    Problem was introduced in commit d046ae112f5ca93378c2146c1ea239bc63778364.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769400
    (cherry picked from commit d4d201f80ca1f401e39daab4c8e6bd0836e02696)

 src/vte.cc |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 609d4e2..14f6bf5 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -10773,9 +10773,8 @@ VteTerminalPrivate::search_rows(pcre2_match_context_8 *match_context,
        GArray *attrs;
        gdouble value, page_size;
 
-
        row_text = get_text(start_row, 0,
-                            end_row + 1, -1,
+                            end_row, -1,
                             false /* block */,
                             true /* wrap */,
                             false /* include trailing whitespace */, /* FIXMEchpe maybe do include it since 
the match may depend on it? */
@@ -10823,7 +10822,7 @@ VteTerminalPrivate::search_rows(pcre2_match_context_8 *match_context,
                m_search_attrs = g_array_new (FALSE, TRUE, sizeof (VteCharAttributes));
        attrs = m_search_attrs;
        row_text = get_text(start_row, 0,
-                            end_row + 1, -1,
+                            end_row, -1,
                             false /* block */,
                             true /* wrap */,
                             false /* include trailing whitespace */, /* FIXMEchpe maybe true? */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]