Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CursorMove by more than one page in y-direction. #1097

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
somiaj committed Oct 31, 2024
commit f1165155200a038e56a14b06b7df2044f8733e0b
2 changes: 1 addition & 1 deletion fvwm/builtins.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading