| 374 | } |
| 375 | |
| 376 | int 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 | |
| 391 | void ScintillaBase::CallTipShow(Point pt, const char *defn) { |
| 392 | ac.Cancel(); |
nothing calls this directly
no test coverage detected