[vte] widget: Correct end row in calls to get_text()
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Correct end row in calls to get_text()
- Date: Sat, 26 Dec 2015 11:27:31 +0000 (UTC)
commit d046ae112f5ca93378c2146c1ea239bc63778364
Author: Christian Persch <chpe gnome org>
Date: Sat Dec 26 12:27:22 2015 +0100
widget: Correct end row in calls to get_text()
We need to pass row+1 if we use -1 as end column to mean
'all the text on the last row'.
src/vte.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index a50ab19..279b4f8 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -11172,7 +11172,7 @@ VteTerminalPrivate::search_rows(
row_text = get_text(start_row, 0,
- end_row, -1,
+ end_row + 1, -1,
false /* block */,
true /* wrap */,
false /* include trailing whitespace */, /* FIXMEchpe maybe do include it since
the match may depend on it? */
@@ -11253,7 +11253,7 @@ VteTerminalPrivate::search_rows(
m_search_attrs = g_array_new (FALSE, TRUE, sizeof (VteCharAttributes));
attrs = m_search_attrs;
row_text = get_text(start_row, 0,
- end_row, -1,
+ end_row + 1, -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]