GetWordBeforeCursorWithSpace returns the word before the cursor. Unlike GetWordBeforeCursor, it returns string containing space
()
| 88 | // GetWordBeforeCursorWithSpace returns the word before the cursor. |
| 89 | // Unlike GetWordBeforeCursor, it returns string containing space |
| 90 | func (d *Document) GetWordBeforeCursorWithSpace() string { |
| 91 | x := d.TextBeforeCursor() |
| 92 | return x[d.FindStartOfPreviousWordWithSpace():] |
| 93 | } |
| 94 | |
| 95 | // GetWordAfterCursorWithSpace returns the word after the cursor. |
| 96 | // Unlike GetWordAfterCursor, it returns string containing space |