[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[5627] remove unnecessary check
From: |
Gavin D. Smith |
Subject: |
[5627] remove unnecessary check |
Date: |
Sun, 01 Jun 2014 20:50:09 +0000 |
Revision: 5627
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5627
Author: gavin
Date: 2014-06-01 20:50:07 +0000 (Sun, 01 Jun 2014)
Log Message:
-----------
remove unnecessary check
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/session.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2014-06-01 20:42:16 UTC (rev 5626)
+++ trunk/ChangeLog 2014-06-01 20:50:07 UTC (rev 5627)
@@ -3,6 +3,9 @@
* info/session.c (info_print_node, print_node): print_node merged
into info_print_node.
+ (remember_window_and_node): Remove check for remembering the same
+ node twice.
+
2014-06-01 Gavin Smith <address@hidden>
* info/window.h (WINDOW): Fields nodes, pagetops, points
Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c 2014-06-01 20:42:16 UTC (rev 5626)
+++ trunk/info/session.c 2014-06-01 20:50:07 UTC (rev 5627)
@@ -327,17 +327,6 @@
{
WINDOW_STATE *new;
- /* If this node, the current pagetop, and the current point are the
- same as the current saved node and pagetop, don't really add this to
- the list of history nodes. This may happen only at the very
- beginning of the program, I'm not sure. --karl */
- if (win->hist
- && win->hist_index >= 1
- && win->hist[win->hist_index - 1]->node->contents == win->node->contents
- && win->hist[win->hist_index - 1]->pagetop == win->pagetop
- && win->hist[win->hist_index - 1]->point == win->point)
- return;
-
new = xmalloc (sizeof (WINDOW_STATE));
new->node = win->node;
new->pagetop = win->pagetop;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [5627] remove unnecessary check,
Gavin D. Smith <=