GetWordAfterCursorWithSpace returns the word after the cursor. Unlike GetWordAfterCursor, it returns string containing space
()
| 95 | // GetWordAfterCursorWithSpace returns the word after the cursor. |
| 96 | // Unlike GetWordAfterCursor, it returns string containing space |
| 97 | func (d *Document) GetWordAfterCursorWithSpace() string { |
| 98 | x := d.TextAfterCursor() |
| 99 | return x[:d.FindEndOfCurrentWordWithSpace()] |
| 100 | } |
| 101 | |
| 102 | // GetWordBeforeCursorUntilSeparator returns the text before the cursor until next separator. |
| 103 | func (d *Document) GetWordBeforeCursorUntilSeparator(sep string) string { |