[vte] regex: Fix row number in the new vte_terminal_event_* methods
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] regex: Fix row number in the new vte_terminal_event_* methods
- Date: Thu, 8 Oct 2015 21:19:09 +0000 (UTC)
commit a04e393cf8f1a95e2b04f10fb06783bbcd72104d
Author: Egmont Koblinger <egmont gmail com>
Date: Thu Oct 8 23:15:23 2015 +0200
regex: Fix row number in the new vte_terminal_event_* methods
src/vte.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 224d895..f3fff69 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -2219,7 +2219,7 @@ vte_terminal_event_check_regex_simple(VteTerminal *terminal,
vte_terminal_match_contents_refresh(terminal);
}
- if (!match_rowcol_to_offset(terminal, col, row,
+ if (!match_rowcol_to_offset(terminal, col, terminal->pvt->screen->scroll_delta + row,
&offset, &sattr, &eattr))
return FALSE;
@@ -2305,7 +2305,7 @@ vte_terminal_event_check_gregex_simple(VteTerminal *terminal,
vte_terminal_match_contents_refresh(terminal);
}
- if (!match_rowcol_to_offset(terminal, col, row,
+ if (!match_rowcol_to_offset(terminal, col, terminal->pvt->screen->scroll_delta + row,
&offset, &sattr, &eattr))
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]