From e423c81971fb362b98e13b8172c107ed4f1af647 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Sat, 11 Apr 2026 22:25:00 +0300 Subject: Fix automatic mode not refreshing the screen --- path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'path.c') diff --git a/path.c b/path.c index e27723b..94925af 100644 --- a/path.c +++ b/path.c @@ -19,7 +19,7 @@ int anim(Map map, size_t width, size_t height, Position start, Position end, Pos while (1) { draw_map(map, width, height, start, end, cur, NULL, visited, frontier); message(height, "cur: %zu %zu", cur->x, cur->y); - if (automatic) { usleep(ANIM_DELAY_USEC); return 0; } + if (automatic) { wrefresh(stdscr); usleep(ANIM_DELAY_USEC); return 0; } switch (getch()) { case 'h': map_offset_x -= 2; break; case 'l': map_offset_x += 2; break; -- cgit v1.2.3