[vte] widget: Fix backward search
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Fix backward search
- Date: Sat, 17 Sep 2016 18:34:20 +0000 (UTC)
commit d4d201f80ca1f401e39daab4c8e6bd0836e02696
Author: Christian Persch <chpe src gnome org>
Date: Sat Sep 17 20:33:47 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
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]