2006-01-16 14:20:52 +00:00
|
|
|
--- less-394/jump.c.fixline 2005-12-03 21:20:32.000000000 +0100
|
|
|
|
+++ less-394/jump.c 2006-01-16 15:12:00.000000000 +0100
|
|
|
|
@@ -30,7 +30,7 @@
|
|
|
|
public void
|
|
|
|
jump_forw()
|
|
|
|
{
|
|
|
|
- POSITION pos;
|
|
|
|
+ POSITION pos, end_pos;
|
|
|
|
|
|
|
|
if (ch_end_seek())
|
|
|
|
{
|
|
|
|
@@ -42,11 +42,15 @@ jump_forw()
|
|
|
|
* Go back one line from the end of the file
|
|
|
|
* to get to the beginning of the last line.
|
|
|
|
*/
|
|
|
|
- pos = back_line(ch_tell());
|
|
|
|
+ pos = back_line(end_pos = ch_tell());
|
|
|
|
if (pos == NULL_POSITION)
|
|
|
|
jump_loc((POSITION)0, sc_height-1);
|
|
|
|
else
|
|
|
|
+ {
|
|
|
|
jump_loc(pos, sc_height-1);
|
|
|
|
+ if (position(sc_height-1) != end_pos)
|
2005-09-06 10:10:07 +00:00
|
|
|
+ repaint();
|
2006-01-16 14:20:52 +00:00
|
|
|
+ }
|
|
|
|
}
|
2005-09-06 10:10:07 +00:00
|
|
|
|
2006-01-16 14:20:52 +00:00
|
|
|
/*
|