[Pkg-jed-commit] [SCM] Debian packaging of JED branch, jo-upstream-fixes, updated. 7067e34ff233dc4deb3d352dc2c063c2504c7309
Jörg Sommer
joerg at alea.gnuu.de
Mon Jun 16 15:48:28 UTC 2008
The following commit has been merged in the jo-upstream-fixes branch:
commit e5c4aeb30891845456d4f3ef92b26e4162db1995
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