summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2015-10-07 22:15:05 +0200
committerChristian Persch <chpe@gnome.org>2015-10-07 22:15:05 +0200
commitf18cf1d9cacf4ad439cfef7b745a62db698561cc (patch)
tree92477890f7e43f1180749ecf560713f951268b43
parent9a774ea964769466c8db6476b9b34dcb67c67245 (diff)
downloadvte-f18cf1d9cacf4ad439cfef7b745a62db698561cc.tar.gz
regex: Fix conditional
-rw-r--r--src/vte.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vte.cc b/src/vte.cc
index 66d33d83..fd2aa051 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -1694,8 +1694,8 @@ vte_terminal_match_check_internal_pcre(VteTerminal *terminal,
break;
/* The offsets should be "sane". We set NOTEMPTY, but check anyway */
- if (G_UNLIKELY(rm_so == rm_eo)) {
- /* rm_so is before the end of subject string's length, so this is safe */
+ if (G_UNLIKELY(position == rm_eo)) {
+ /* rm_eo is before the end of subject string's length, so this is safe */
position = g_utf8_next_char(line + rm_eo) - line;
continue;
}