From f1165155200a038e56a14b06b7df2044f8733e0b Mon Sep 17 00:00:00 2001 From: Jaimos Skriletz Date: Wed, 30 Oct 2024 21:42:29 -0600 Subject: [PATCH] Fix CursorMove by more than one page in y-direction. Fix a typo that made it so moving the cursor more than a single page in the y-direction failed. --- fvwm/builtins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fvwm/builtins.c b/fvwm/builtins.c index 3819d4480..1e87d64da 100644 --- a/fvwm/builtins.c +++ b/fvwm/builtins.c @@ -2293,7 +2293,7 @@ void CMD_CursorMove(F_CMD_ARGS) { y_pages = ((y + 1) / monitor_get_all_heights()) - 1; } - virtual_y += y_pages > monitor_get_all_heights(); + virtual_y += y_pages * monitor_get_all_heights(); y -= y_pages * monitor_get_all_heights(); if (virtual_y < 0)