From ee412811cebf2a848b8b2eaca1b214629e62fbf0 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Fri, 3 May 2024 13:37:43 +0100 Subject: [PATCH] Build error --- src/action.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/action.c b/src/action.c index 26c2ec14..29407b03 100644 --- a/src/action.c +++ b/src/action.c @@ -1061,11 +1061,13 @@ actions_run(struct view *activator, struct server *server, magnify_toggle(); break; case ACTION_TYPE_SET_MAGNIFICATION: - const char *dir = action_get_str(action, "scale", NULL); - if (!strcmp(dir, "up")) { - magnify_set_scale(MAGNIFY_INCREASE); - } else if (!strcmp(dir, "down")) { - magnify_set_scale(MAGNIFY_DECREASE); + { + const char *dir = action_get_str(action, "scale", NULL); + if (!strcmp(dir, "up")) { + magnify_set_scale(MAGNIFY_INCREASE); + } else if (!strcmp(dir, "down")) { + magnify_set_scale(MAGNIFY_DECREASE); + } } break; case ACTION_TYPE_INVALID: