Karl Berry wrote:
>     it can be achieved by inserting the following statement at
> the end of _scroll_backward(), and before the return statement
> ten lines earlier:
>
> Can you please just send me a diff?

Attached.

> At least it's still a "tiny change".

Some will argue that several tiny changes together make a small 
substantial one.

> (Also, I doubt there is any legal difference between such
> precisely-worded instructions as you have been sending and a
> patch.)

In future I will be more vague.  :)

Benno
diff -ur cvs-texinfo/info/session.c texinfo-new/info/session.c
--- cvs-texinfo/info/session.c	2008-03-23 23:01:38.000000000 +0100
+++ texinfo-new/info/session.c	2008-03-23 23:19:36.000000000 +0100
@@ -1349,10 +1349,11 @@
 	  
           if ((desired_top < 0) && (window->pagetop == 0))
             {
-              if (backward_move_node_structure (window, behaviour))
-	        info_beginning_of_node (window, 1, 0);
-	      else if (cursor_movement_scrolls_p)
+              if ((backward_move_node_structure (window, behaviour) == 0)
+                  && (cursor_movement_scrolls_p))
 		info_end_of_node (window, 1, 0);
+              window->point = (window->line_starts[window->pagetop]
+                               - window->node->contents);
               return;
             }
         }
@@ -1363,6 +1364,8 @@
         desired_top = 0;
 
       set_window_pagetop (window, desired_top);
+      window->point = (window->line_starts[window->pagetop]
+                       - window->node->contents);
     }
 }
 

Reply via email to