[vte/vte-0-36] widget: Fix regex matches not always being recognized
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-36] widget: Fix regex matches not always being recognized
- Date: Sun, 13 Sep 2015 13:49:46 +0000 (UTC)
commit 490bd276c9c77186a414fd9d4f789e42d8b90efb
Author: Egmont Koblinger <egmont gmail com>
Date: Sun Sep 13 15:27:39 2015 +0200
widget: Fix regex matches not always being recognized
https://bugzilla.gnome.org/show_bug.cgi?id=754949
(cherry picked from commit 1c703aaefa44f88ca50e210fcb0265f2b65851b9)
src/vte.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 94fe5be..77b249c 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -1889,7 +1889,7 @@ vte_terminal_match_check_internal_gregex(VteTerminal *terminal,
g_match_info_free(match_info);
return result;
}
- if (ko > rm_eo &&
+ if (ko > rm_eo - 1 &&
rm_eo > sblank) {
sblank = rm_eo;
}
@@ -1915,7 +1915,7 @@ vte_terminal_match_check_internal_gregex(VteTerminal *terminal,
*start = sattr + start_blank;
}
if (end != NULL) {
- *end = sattr + end_blank;
+ *end = sattr + end_blank - 1;
}
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]