Gtk.TextBuffer.prototype.get_insert

function get_insert():Gtk.TextMark {
    // Gjs wrapper for gtk_text_buffer_get_insert()
}

Returns the mark that represents the cursor (insertion point). Equivalent to calling Gtk.get_mark to get the mark named "insert", but very slightly more efficient, and involves less typing.

Returns

insertion point mark