HasSelection returns whether there is a selected region of text
()
| 54 | |
| 55 | // HasSelection returns whether there is a selected region of text |
| 56 | func (ed *Editor) HasSelection() bool { |
| 57 | return ed.SelectRegion.Start.IsLess(ed.SelectRegion.End) |
| 58 | } |
| 59 | |
| 60 | // Selection returns the currently selected text as a text.Edit, which |
| 61 | // captures start, end, and full lines in between -- nil if no selection |
no test coverage detected