texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[5619] info_handle_pointer: remove redundant statements


From: Gavin D. Smith
Subject: [5619] info_handle_pointer: remove redundant statements
Date: Sat, 31 May 2014 20:25:30 +0000

Revision: 5619
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5619
Author:   gavin
Date:     2014-05-31 20:25:29 +0000 (Sat, 31 May 2014)
Log Message:
-----------
info_handle_pointer: remove redundant statements

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/session.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-05-31 20:12:30 UTC (rev 5618)
+++ trunk/ChangeLog     2014-05-31 20:25:29 UTC (rev 5619)
@@ -3,6 +3,9 @@
        * info/session.c (forget_windows_and_nodes): Don't free node
        structures in a window's history when it is deleted.
 
+       (info_handle_pointer): Don't save pagetop and point - done
+       when info_set_node_of_window is called.
+
 2014-05-31  Gavin Smith  <address@hidden>
 
        * info/window.h (WINDOW): Fields added from INFO_WINDOW:

Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c        2014-05-31 20:12:30 UTC (rev 5618)
+++ trunk/info/session.c        2014-05-31 20:25:29 UTC (rev 5619)
@@ -1597,14 +1597,12 @@
 
   /* Set the cursor position to the last place it was in the
      node, if we are going up. */
-    if (strcmp (label, "Up") == 0)
-      {
-        int i = info_win_find_node (window, node);
-        if (i >= 0)
-          node->display_pos = window->points[i];
-      }
-    window->pagetops[window->current] = window->pagetop;
-    window->points[window->current] = window->point;
+  if (strcmp (label, "Up") == 0)
+    {
+      int i = info_win_find_node (window, node);
+      if (i >= 0)
+        node->display_pos = window->points[i];
+    }
 
   info_set_node_of_window (window, node);
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]