TextBuffer.deleteSelection

Deletes the range between the "insert" and "selection_bound" marks, that is, the currently-selected text. If interactive is TRUE, the editability of the selection will be considered (users can't delete uneditable text).

class TextBuffer
int
deleteSelection

Parameters

interactive int

whether the deletion is caused by user interaction

defaultEditable int

whether the buffer is editable by default

Return Value

Type: int

whether there was a non-empty selection to delete

Meta