diff options
author | Christian Persch <chpe@gnome.org> | 2015-10-07 22:15:05 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2015-10-07 22:15:05 +0200 |
commit | f18cf1d9cacf4ad439cfef7b745a62db698561cc (patch) | |
tree | 92477890f7e43f1180749ecf560713f951268b43 | |
parent | 9a774ea964769466c8db6476b9b34dcb67c67245 (diff) | |
download | vte-f18cf1d9cacf4ad439cfef7b745a62db698561cc.tar.gz |
regex: Fix conditional
-rw-r--r-- | src/vte.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |