diff options
author | Corey Berla <corey@berla.me> | 2022-09-30 09:19:32 -0700 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-12-03 20:14:48 +0000 |
commit | a406f57d8778e2cd17fb8c904a197723cf1e0c02 (patch) | |
tree | 58243650fa2190bc683978140efece55c5348bb3 /src/nautilus-query-editor.c | |
parent | c16f3fd2d9537ad6cf2995a5be3832e605db0f79 (diff) | |
download | nautilus-a406f57d8778e2cd17fb8c904a197723cf1e0c02.tar.gz |
query-editor: Set position at the end of the text
If we are updating the query editor's text (i.e. through the
shell search provider), we should move the cursor position to the
end of the text, otherwise it's at the beginning of the text.
Diffstat (limited to 'src/nautilus-query-editor.c')
-rw-r--r-- | src/nautilus-query-editor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c index a33349197..7db934409 100644 --- a/src/nautilus-query-editor.c +++ b/src/nautilus-query-editor.c @@ -773,6 +773,7 @@ nautilus_query_editor_set_query (NautilusQueryEditor *self, if (!g_str_equal (current_text, text)) { gtk_editable_set_text (GTK_EDITABLE (self->text), text); + gtk_editable_set_position (GTK_EDITABLE (self->text), -1); } if (g_set_object (&self->query, query)) |