Update pixel position of the caret. */
| 302 | |
| 303 | /** Update pixel position of the caret. */ |
| 304 | void Textbuf::UpdateCaretPosition() |
| 305 | { |
| 306 | const auto pos = GetCharPosInString(this->buf, this->caretpos, FS_NORMAL); |
| 307 | this->caretxoffs = _current_text_dir == TD_LTR ? pos.left : pos.right; |
| 308 | } |
| 309 | |
| 310 | /** Update pixel positions of the marked text area. */ |
| 311 | void Textbuf::UpdateMarkedText() |
no test coverage detected