diff options
author | Norbert Preining <[email protected]> | 2020-03-20 07:53:04 +0900 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-30 15:36:31 +0200 |
commit | 9d128954c0e60b6cd8a10a55a243a070fc780fd8 (patch) | |
tree | e696debe72577e2554ae92f305a8dfac3aad6440 /src/terminal-window.c | |
parent | 858bbdfcb12307edb0442d5d021dbd269f43663c (diff) | |
download | mate-terminal-9d128954c0e60b6cd8a10a55a243a070fc780fd8.tar.bz2 mate-terminal-9d128954c0e60b6cd8a10a55a243a070fc780fd8.tar.xz |
fix searching in terminal window
Make sure are regex are compiled with PCRE2_MULTILINE which is
a requirement by the vte library
Diffstat (limited to 'src/terminal-window.c')
-rw-r--r-- | src/terminal-window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c index 9949fdf..f61dc17 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -4064,7 +4064,7 @@ search_find_response_callback (GtkWidget *dialog, TerminalWindow *window = TERMINAL_WINDOW (user_data); TerminalWindowPrivate *priv = window->priv; TerminalSearchFlags flags; - GRegex *regex; + VteRegex *regex; if (response != GTK_RESPONSE_ACCEPT) return; @@ -4077,7 +4077,7 @@ search_find_response_callback (GtkWidget *dialog, flags = terminal_search_dialog_get_search_flags (dialog); - vte_terminal_search_set_gregex (VTE_TERMINAL (priv->active_screen), regex, 0); + vte_terminal_search_set_regex (VTE_TERMINAL (priv->active_screen), regex, 0); vte_terminal_search_set_wrap_around (VTE_TERMINAL (priv->active_screen), (flags & TERMINAL_SEARCH_FLAG_WRAP_AROUND)); @@ -4148,7 +4148,7 @@ search_clear_highlight_callback (GtkAction *action, if (G_UNLIKELY (!window->priv->active_screen)) return; - vte_terminal_search_set_gregex (VTE_TERMINAL (window->priv->active_screen), NULL, 0); + vte_terminal_search_set_regex (VTE_TERMINAL (window->priv->active_screen), NULL, 0); } static void |