[Pkg-jed-commit] [SCM] Debian packaging of JED branch, jo-upstream-fixes, updated. 3bb27317d2e41070ee40080b18e63f569c2ac79e

Jörg Sommer joerg at alea.gnuu.de
Thu May 29 19:51:20 UTC 2008


The following commit has been merged in the jo-upstream-fixes branch:
commit 68dbb2bda7c817ce59e15ce2f5bc056013a3671a
Author: Jörg Sommer <joerg at alea.gnuu.de>
Date:   Thu May 29 16:58:44 2008 +0200

    Make goto_*_of_window() save for hidden lines
    
    The old functions goto_top_of_window() and goto_bottom_of_window() didn't
    care for the visibility of the lines. Therefore, they didn't reached the
    top or the bottom of the window, if the passed hidden lines.

diff --git a/lib/site.sl b/lib/site.sl
index e3d1769..8eb3dd8 100644
--- a/lib/site.sl
+++ b/lib/site.sl
@@ -1695,13 +1695,15 @@ define whatpos ()
 
 define goto_top_of_window ()
 {
-   go_up (window_line () - 1);
+   loop (window_line () - 1)
+     skip_hidden_lines_backward(1);
    bol ();
 }
 
 define goto_bottom_of_window ()
 {
-   go_down (window_info ('r') - window_line ());
+   loop (window_info ('r') - window_line ())
+      skip_hidden_lines_forward(1);
 }
 
 %!%+

-- 
Debian packaging of JED



More information about the Pkg-jed-commit mailing list