aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/window.h4
-rw-r--r--src/xdisp.c2
3 files changed, 3 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d14c322cadf..6c3810c6bac 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -5,9 +5,6 @@
5 coordinates when window's hscroll is set to insanely large 5 coordinates when window's hscroll is set to insanely large
6 values. (Bug#11857) 6 values. (Bug#11857)
7 7
8 * window.h (struct window) <hscroll, min_hscroll>: Change type to
9 'int'.
10
112012-07-05 Juanma Barranquero <lekktu@gmail.com> 82012-07-05 Juanma Barranquero <lekktu@gmail.com>
12 9
13 * makefile.w32-in ($(BLD)/dired.$(O), $(BLD)/fileio.$(O)): Fix typo. 10 * makefile.w32-in ($(BLD)/dired.$(O), $(BLD)/fileio.$(O)): Fix typo.
diff --git a/src/window.h b/src/window.h
index 2684713eb6b..10cabed979b 100644
--- a/src/window.h
+++ b/src/window.h
@@ -238,11 +238,11 @@ struct window
238 int sequence_number; 238 int sequence_number;
239 239
240 /* Number of columns display within the window is scrolled to the left. */ 240 /* Number of columns display within the window is scrolled to the left. */
241 int hscroll; 241 ptrdiff_t hscroll;
242 242
243 /* Minimum hscroll for automatic hscrolling. This is the value 243 /* Minimum hscroll for automatic hscrolling. This is the value
244 the user has set, by set-window-hscroll for example. */ 244 the user has set, by set-window-hscroll for example. */
245 int min_hscroll; 245 ptrdiff_t min_hscroll;
246 246
247 /* Displayed buffer's text modification events counter as of last time 247 /* Displayed buffer's text modification events counter as of last time
248 display completed. */ 248 display completed. */
diff --git a/src/xdisp.c b/src/xdisp.c
index e6ad6a0bd78..d24c05172b6 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1258,7 +1258,7 @@ string_from_display_spec (Lisp_Object spec)
1258static inline int 1258static inline int
1259window_hscroll_limited (struct window *w, struct frame *f) 1259window_hscroll_limited (struct window *w, struct frame *f)
1260{ 1260{
1261 int window_hscroll = w->hscroll; 1261 ptrdiff_t window_hscroll = w->hscroll;
1262 int window_text_width = window_box_width (w, TEXT_AREA); 1262 int window_text_width = window_box_width (w, TEXT_AREA);
1263 int colwidth = FRAME_COLUMN_WIDTH (f); 1263 int colwidth = FRAME_COLUMN_WIDTH (f);
1264 1264