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: