* Move to next character position. * @param what Move ITER_CHARACTER or ITER_WORD. * @return true iff able to move. */
| 343 | * @return true iff able to move. |
| 344 | */ |
| 345 | bool Textbuf::MoveNext(StringIterator::IterType what) |
| 346 | { |
| 347 | if (this->caretpos >= this->buf.size()) return false; |
| 348 | |
| 349 | size_t pos = this->char_iter->Next(what); |
| 350 | if (pos == StringIterator::END) return true; |
| 351 | |
| 352 | this->caretpos = static_cast<uint16_t>(pos); |
| 353 | this->UpdateCaretPosition(); |
| 354 | return true; |
| 355 | } |
| 356 | |
| 357 | /** |
| 358 | * Handle text navigation with arrow keys left/right. |
no test coverage detected