[gnome-builder] gb-terminal: add required PCRE2_MULTILINE
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] gb-terminal: add required PCRE2_MULTILINE
- Date: Mon, 28 Nov 2016 11:32:04 +0000 (UTC)
commit e88f9fdc73c6964c94f82cd209105e0bfd756936
Author: Sebastien Lafargue <slafargue gnome org>
Date: Mon Nov 28 12:29:58 2016 +0100
gb-terminal: add required PCRE2_MULTILINE
required by vte:
https://git.gnome.org/browse/vte/tree/src/vtegtk.cc#n1734
plugins/terminal/gb-terminal.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/terminal/gb-terminal.c b/plugins/terminal/gb-terminal.c
index 245ac15..ad60074 100644
--- a/plugins/terminal/gb-terminal.c
+++ b/plugins/terminal/gb-terminal.c
@@ -23,6 +23,8 @@
#include "gb-terminal.h"
+#define BUILDER_PCRE2_MULTILINE 0x00000400u
+
typedef struct
{
GbTerminal *terminal;
@@ -244,7 +246,9 @@ gb_terminal_init (GbTerminal *self)
g_autoptr(VteRegex) regex = NULL;
gint tag;
- regex = vte_regex_new_for_match (pattern, IDE_LITERAL_LENGTH (pattern), VTE_REGEX_FLAGS_DEFAULT, NULL);
+ regex = vte_regex_new_for_match (pattern, IDE_LITERAL_LENGTH (pattern),
+ VTE_REGEX_FLAGS_DEFAULT | BUILDER_PCRE2_MULTILINE,
+ NULL);
tag = vte_terminal_match_add_regex (VTE_TERMINAL (self), regex, 0);
vte_terminal_match_set_cursor_type (VTE_TERMINAL (self), tag, GDK_HAND2);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]