Update cursor position after committing IM string

(cherry picked from commit 01fea56eb6)
This commit is contained in:
Jean-Marc Lasgouttes 2018-04-18 17:39:43 +02:00
parent 9639b9a3fb
commit 5c6bc52b1b
2 changed files with 3 additions and 0 deletions

View File

@ -1282,6 +1282,7 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
d->buffer_view_->cursor().insert(qstring_to_ucs4(e->commitString()));
d->buffer_view_->updateMetrics();
d->buffer_view_->cursor().endUndoGroup();
d->updateCaretGeometry();
viewport()->update();
}

View File

@ -227,6 +227,8 @@ What's new
- Improve error message when document path contains spaces.
- Fix blinking caret position while entering text with input method.
* INTERNALS