remove update_layout from text-node, as it doesn't seem to be needed

This commit is contained in:
hippoz 2023-04-26 16:44:51 +03:00
parent d636de027b
commit 7f7a6684e4
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED

View file

@ -84,7 +84,6 @@ int text_node_handle(UINode *node, enum UIEvent ev, size_t d, void *p)
if (!n->layout) {
break;
}
pango_cairo_update_layout(n->node.drw, n->layout);
if (n->caret_index >= 0) {
if (!n->caret_node) {
n->caret_node = node_new(&n->node, "caret");