You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

  1. From 28cfab7580c42a6d6c9c5d787ce736094fd51a0c Mon Sep 17 00:00:00 2001
  2. From: Benno Schulenberg <bensberg@telfort.nl>
  3. Date: Tue, 29 Aug 2017 19:28:44 +0200
  4. Subject: tweaks: fix compilation when configured with --enable-tiny
  5. When moving the cursor to the top-left corner, it is not necessary
  6. to compute leftedge because firstcolumn IS the relevant leftedge.
  7. Reported-by: Jordi Mallach <jordi@debian.org>
  8. ---
  9. src/move.c | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. diff --git a/src/move.c b/src/move.c
  12. index d138356..ce276e4 100644
  13. --- a/src/move.c
  14. +++ b/src/move.c
  15. @@ -121,7 +121,7 @@ void do_page_up(void)
  16. openfile->current = openfile->edittop;
  17. openfile->current_y = 0;
  18. - leftedge = leftedge_for(openfile->firstcolumn, openfile->edittop);
  19. + leftedge = openfile->firstcolumn;
  20. target_column = 0;
  21. } else
  22. get_edge_and_target(&leftedge, &target_column);
  23. @@ -152,7 +152,7 @@ void do_page_down(void)
  24. openfile->current = openfile->edittop;
  25. openfile->current_y = 0;
  26. - leftedge = leftedge_for(openfile->firstcolumn, openfile->edittop);
  27. + leftedge = openfile->firstcolumn;
  28. target_column = 0;
  29. } else
  30. get_edge_and_target(&leftedge, &target_column);
  31. --
  32. cgit v1.0-41-gc330