[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[5778] cursor positioning for upward scrolling
From: |
Gavin D. Smith |
Subject: |
[5778] cursor positioning for upward scrolling |
Date: |
Mon, 25 Aug 2014 15:18:28 +0000 |
Revision: 5778
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5778
Author: gavin
Date: 2014-08-25 15:18:26 +0000 (Mon, 25 Aug 2014)
Log Message:
-----------
cursor positioning for upward scrolling
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/window.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2014-08-24 19:24:57 UTC (rev 5777)
+++ trunk/ChangeLog 2014-08-25 15:18:26 UTC (rev 5778)
@@ -1,3 +1,8 @@
+2014-08-25 Gavin Smith <address@hidden>
+
+ * info/window.c (set_window_pagetop): If point would end up past
+ bottom of displayed part of node, put it on the last displayed line.
+
2014-08-24 Gavin Smith <address@hidden>
* info/session.c (_scroll_forward, _scroll_backward): Arguments
Modified: trunk/info/window.c
===================================================================
--- trunk/info/window.c 2014-08-24 19:24:57 UTC (rev 5777)
+++ trunk/info/window.c 2014-08-25 15:18:26 UTC (rev 5778)
@@ -758,10 +758,10 @@
/* Make sure that point appears in this window. */
point_line = window_line_of_point (window);
- if ((point_line < window->pagetop) ||
- ((point_line - window->pagetop) > window->height - 1))
- window->point =
- window->line_starts[window->pagetop];
+ if (point_line < window->pagetop)
+ window->point = window->line_starts[window->pagetop];
+ else if (point_line >= window->pagetop + window->height)
+ window->point = window->line_starts[window->pagetop + window->height - 1];
window->flags |= W_UpdateWindow;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [5778] cursor positioning for upward scrolling,
Gavin D. Smith <=