| 182 | } |
| 183 | |
| 184 | int LanguageClientHandlerPrivate::wordPostion() |
| 185 | { |
| 186 | int pos = editor->cursorPosition(); |
| 187 | if (editor->hasSelectedText()) { |
| 188 | int startPos = editor->wordStartPositoin(pos); |
| 189 | int endPos = editor->wordEndPosition(pos); |
| 190 | return (startPos + endPos) / 2; |
| 191 | } |
| 192 | |
| 193 | return pos; |
| 194 | } |
| 195 | |
| 196 | newlsp::Client *LanguageClientHandlerPrivate::getClient() |
| 197 | { |
no test coverage detected