[vte] regex: Fix conditional



commit f18cf1d9cacf4ad439cfef7b745a62db698561cc
Author: Christian Persch <chpe gnome org>
Date:   Wed Oct 7 22:15:05 2015 +0200

    regex: Fix conditional

 src/vte.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 66d33d8..fd2aa05 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;
                         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]