From: Lukáš Jiřiště Date: Tue, 11 Aug 2026 19:24:23 +0000 (+0200) Subject: Fix wrong viewport translation when drawing node X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=79f0a9cdf2cf391179e0f4fac96983848ff5458d;p=FET_sim.git Fix wrong viewport translation when drawing node --- diff --git a/src/schema_mode.c b/src/schema_mode.c index cf7a7ab..57113e2 100644 --- a/src/schema_mode.c +++ b/src/schema_mode.c @@ -223,7 +223,9 @@ int place_segment(t_schem_win *schematics_win, t_node *node, t_node_segment *pre return (1); // The choice not to ungetch is deliberate, because it felt weird using it ft_vec_append(&node->segments, prediction); schema_draw_segment(*schematics_win, prediction); + cursor_move_unprivileged(*schematics_win, prediction->position.y, prediction->position.x); *prediction = tmp; + cursor_move(schematics_win, prediction->position.y, prediction->position.x); return (0); }