| 1018 | } |
| 1019 | |
| 1020 | std::string AutoCompletePlugin::getPartialSymbol( TextDocument* doc ) { |
| 1021 | TextPosition end = doc->getSelection().end(); |
| 1022 | TextPosition start = doc->startOfWord( end ); |
| 1023 | return doc->getText( { start, end } ).toUtf8(); |
| 1024 | } |
| 1025 | |
| 1026 | void AutoCompletePlugin::update( UICodeEditor* ) { |
| 1027 | if ( mClock.getElapsedTime() >= mUpdateFreq || mDirty ) { |
nothing calls this directly
no test coverage detected