Gtk.EntryCompletion.prototype.get_completion_prefix

function get_completion_prefix():String {
    // Gjs wrapper for gtk_entry_completion_get_completion_prefix()
}

Get the original text entered by the user that triggered the completion or null if there's no completion ongoing.

Since 2.12

Returns

the prefix for the current completion