HasSelection returns whether or not the user has selected anything
()
| 169 | |
| 170 | // HasSelection returns whether or not the user has selected anything |
| 171 | func (c *Cursor) HasSelection() bool { |
| 172 | return c.CurSelection[0] != c.CurSelection[1] |
| 173 | } |
| 174 | |
| 175 | // DeleteSelection deletes the currently selected text |
| 176 | func (c *Cursor) DeleteSelection() { |
no outgoing calls
no test coverage detected