summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}