GetWordBeforeCursorUntilSeparatorIgnoreNextToCursor returns the word before the cursor. Unlike GetWordBeforeCursor, it returns string containing space
(sep string)
| 114 | // GetWordBeforeCursorUntilSeparatorIgnoreNextToCursor returns the word before the cursor. |
| 115 | // Unlike GetWordBeforeCursor, it returns string containing space |
| 116 | func (d *Document) GetWordBeforeCursorUntilSeparatorIgnoreNextToCursor(sep string) string { |
| 117 | x := d.TextBeforeCursor() |
| 118 | return x[d.FindStartOfPreviousWordUntilSeparatorIgnoreNextToCursor(sep):] |
| 119 | } |
| 120 | |
| 121 | // GetWordAfterCursorUntilSeparatorIgnoreNextToCursor returns the word after the cursor. |
| 122 | // Unlike GetWordAfterCursor, it returns string containing space |