MCPcopy Create free account
hub / github.com/VCVRack/Rack / cursorToNextWord

Method cursorToNextWord

src/ui/TextField.cpp:403–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403void TextField::cursorToNextWord() {
404 if (password) {
405 cursor = text.size();
406 return;
407 }
408 size_t pos = text.find(' ', std::min(cursor + 1, (int) text.size()));
409 if (pos == std::string::npos)
410 pos = text.size();
411 cursor = pos;
412}
413
414void TextField::cursorToLineStart() {
415 if (password) {

Callers

nothing calls this directly

Calls 2

minFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected