From f606e821f8839e3d04877fc512d8565b40b7a796 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Fri, 14 Aug 2015 15:08:04 -0400 Subject: [PATCH] ported: "*made messages and comments redraw when they are manually changed" from pd-l2ork: 7ad47e188a941508b92e3c96bc9e05432fbb88f7 --- pd/src/g_text.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pd/src/g_text.c b/pd/src/g_text.c index a937852d7..2cf2201b1 100644 --- a/pd/src/g_text.c +++ b/pd/src/g_text.c @@ -2628,6 +2628,14 @@ void text_setto(t_text *x, t_glist *glist, char *buf, int bufsize, int pos) binbuf_text(x->te_binbuf, buf, bufsize); binbuf_free(b); + // we redraw retexted messages and comments so that they visually + // match their stack position (namely, they are now on top) + if (glist_istoplevel(glist)) + { + gobj_vis(&x->te_g, glist, 0); + gobj_vis(&x->te_g, glist, 1); + } + //probably don't need this here, but doesn't hurt to leave it in glob_preset_node_list_seek_hub(); glob_preset_node_list_check_loc_and_update(); -- GitLab