diff options
author | Egmont Koblinger <egmont@gmail.com> | 2015-09-13 15:27:39 +0200 |
---|---|---|
committer | Egmont Koblinger <egmont@gmail.com> | 2015-09-13 15:27:39 +0200 |
commit | 1c703aaefa44f88ca50e210fcb0265f2b65851b9 (patch) | |
tree | 9c6534d873621146c2053d25b27bfcdee83dd592 | |
parent | 2477ae1d8e904f3dcff27f716ee30073dc3c298e (diff) | |
download | vte-1c703aaefa44f88ca50e210fcb0265f2b65851b9.tar.gz |
widget: Fix regex matches not always being recognized
https://bugzilla.gnome.org/show_bug.cgi?id=754949
-rw-r--r-- | src/vte.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1582,7 +1582,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; } @@ -1608,7 +1608,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; } |