Skip the cursor past the autocompleted part when requesting explicit completion

Signed-off-by: Federico Mena Quintero <federico@gnu.org>

svn path=/trunk/; revision=19802
This commit is contained in:
Federico Mena Quintero 2008-03-13 00:27:46 +00:00 committed by Federico Mena Quintero
parent 45c87ed009
commit bbb847aef7

View File

@ -785,7 +785,14 @@ gtk_file_chooser_entry_focus (GtkWidget *widget,
{
gint pos = 0;
if (!chooser_entry->has_completion)
if (chooser_entry->has_completion)
{
gint sel_end;
if (gtk_editable_get_selection_bounds (editable, NULL, &sel_end))
gtk_editable_set_position (editable, sel_end);
}
else
append_common_prefix (chooser_entry, FALSE);
/* Trigger the completion window to pop up again by a