TextBuffer.getHasSelection

bool getHasSelection() nothrow

Indicates whether the buffer has some text currently selected.

Returns

true if the there is text selected