aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Text.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Text.cpp b/src/Text.cpp
index 0b6347d..26574bf 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -1289,6 +1289,15 @@ namespace QuickMedia
dirtyText = true;
dirtyCaret = true;
}
+
+ // TODO: Dont do this here! it's slow, but it's needed to process the change before the next event
+ updateGeometry();
+
+ if(editable && (dirtyCaret || caretMoveDirection != CaretMoveDirection::NONE)) {
+ updateCaret();
+ dirtyCaret = false;
+ caretMoveDirection = CaretMoveDirection::NONE;
+ }
}
bool Text::draw(mgl::Window &target)