Commit 63d060e1 authored by Christian Hergert's avatar Christian Hergert

search: allow searching for some escape sequences without regex

Being able to search for \t and \n without regex is handy, so we'll copy
what gedit does here and enable it by default.
parent 9e9b0831
......@@ -978,8 +978,13 @@ void
ide_editor_search_set_search_text (IdeEditorSearch *self,
const gchar *search_text)
{
g_autofree gchar *unescaped = NULL;
g_return_if_fail (IDE_IS_EDITOR_SEARCH (self));
if (!ide_editor_search_get_regex_enabled (self))
search_text = unescaped = gtk_source_utils_unescape_search_text (search_text);
gtk_source_search_settings_set_search_text (self->settings, search_text);
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment