Fix LineEdit caret rendering/positioning on Undo.
This commit is contained in:
parent
c8c483cf57
commit
6888d957dc
1 changed files with 4 additions and 2 deletions
|
@ -1228,9 +1228,10 @@ void LineEdit::undo() {
|
|||
TextOperation op = undo_stack_pos->get();
|
||||
text = op.text;
|
||||
scroll_offset = op.scroll_offset;
|
||||
set_caret_column(op.caret_column);
|
||||
|
||||
_shape();
|
||||
set_caret_column(op.caret_column);
|
||||
|
||||
_emit_text_change();
|
||||
}
|
||||
|
||||
|
@ -1252,9 +1253,10 @@ void LineEdit::redo() {
|
|||
TextOperation op = undo_stack_pos->get();
|
||||
text = op.text;
|
||||
scroll_offset = op.scroll_offset;
|
||||
set_caret_column(op.caret_column);
|
||||
|
||||
_shape();
|
||||
set_caret_column(op.caret_column);
|
||||
|
||||
_emit_text_change();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue