MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / AutoCompleteGetCurrentText

Method AutoCompleteGetCurrentText

scintilla/src/ScintillaBase.cxx:376–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376int ScintillaBase::AutoCompleteGetCurrentText(char *buffer) {
377 if (ac.Active()) {
378 int item = ac.GetSelection();
379 if (item != -1) {
380 const std::string selected = ac.GetValue(item);
381 if (buffer != NULL)
382 strcpy(buffer, selected.c_str());
383 return static_cast<int>(selected.length());
384 }
385 }
386 if (buffer != NULL)
387 *buffer = '\0';
388 return 0;
389}
390
391void ScintillaBase::CallTipShow(Point pt, const char *defn) {
392 ac.Cancel();

Callers

nothing calls this directly

Calls 3

ActiveMethod · 0.80
GetSelectionMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected