[vte/vte-0-40] widget: Fix regex matches not always being recognized



commit 2d9e5c89563e82c01c87787db64a6a6b01ece8b7
Author: Egmont Koblinger <egmont gmail com>
Date:   Sun Sep 13 15:27:39 2015 +0200

    widget: Fix regex matches not always being recognized
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754949
    (cherry picked from commit 1c703aaefa44f88ca50e210fcb0265f2b65851b9)

 src/vte.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 847688f..035f23c 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -1573,7 +1573,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;
                                }
@@ -1599,7 +1599,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;
 }


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