[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[5838] change how goal_column is set in a few places
From: |
Gavin D. Smith |
Subject: |
[5838] change how goal_column is set in a few places |
Date: |
Wed, 24 Sep 2014 13:25:42 +0000 |
Revision: 5838
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5838
Author: gavin
Date: 2014-09-24 13:25:40 +0000 (Wed, 24 Sep 2014)
Log Message:
-----------
change how goal_column is set in a few places
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/session.c
trunk/info/window.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2014-09-24 13:07:18 UTC (rev 5837)
+++ trunk/ChangeLog 2014-09-24 13:25:40 UTC (rev 5838)
@@ -12,6 +12,9 @@
(info_show_point): Don't set goal_column.
(info_read_and_dispatch): Set goal_column to -1 unless previous
commmand was next-line or prev-line.
+ (info_search_in_node_internal): Don't set goal_column.
+ * info/window.c (window_set_node_of_window): Don't set goal_column.
+ (window_make_window): Initialize goal_column to -1.
2014-09-22 Gavin Smith <address@hidden>
Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c 2014-09-24 13:07:18 UTC (rev 5837)
+++ trunk/info/session.c 2014-09-24 13:25:40 UTC (rev 5838)
@@ -1001,8 +1001,7 @@
int window_scroll_step = 1;
/* Used after cursor movement commands. Scroll window so that point is
- visible, and move the terminal cursor there. Record current column in
- WINDOW->goal_column. */
+ visible, and move the terminal cursor there. */
static void
info_show_point (WINDOW *window)
{
@@ -3928,7 +3927,6 @@
new_point = matches[match_index].rm_so;
window->point = new_point;
- window->goal_column = window_get_cursor_column (window);
}
return result;
}
Modified: trunk/info/window.c
===================================================================
--- trunk/info/window.c 2014-09-24 13:07:18 UTC (rev 5837)
+++ trunk/info/window.c 2014-09-24 13:25:40 UTC (rev 5838)
@@ -292,7 +292,7 @@
window->height = (active_window->height / 2) - 1;
window->first_row = active_window->first_row +
(active_window->height - window->height);
- window->goal_column = 0;
+ window->goal_column = -1;
memset (&window->line_map, 0, sizeof (window->line_map));
window->modeline = xmalloc (1 + window->width);
window->line_starts = NULL;
@@ -571,7 +571,6 @@
window->node = node;
window->pagetop = 0;
window->point = 0;
- window->goal_column = 0;
free (window->line_starts);
free (window->log_line_no);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [5838] change how goal_column is set in a few places,
Gavin D. Smith <=