mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 19:31:02 -08:00
Revert hscroll and min_hscroll to ptrdiff_t.
Fixes: debbugs:11857
This commit is contained in:
parent
d6e7bf450c
commit
ea2ac79792
3 changed files with 3 additions and 6 deletions
|
|
@ -5,9 +5,6 @@
|
|||
coordinates when window's hscroll is set to insanely large
|
||||
values. (Bug#11857)
|
||||
|
||||
* window.h (struct window) <hscroll, min_hscroll>: Change type to
|
||||
'int'.
|
||||
|
||||
2012-07-05 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* makefile.w32-in ($(BLD)/dired.$(O), $(BLD)/fileio.$(O)): Fix typo.
|
||||
|
|
|
|||
|
|
@ -238,11 +238,11 @@ struct window
|
|||
int sequence_number;
|
||||
|
||||
/* Number of columns display within the window is scrolled to the left. */
|
||||
int hscroll;
|
||||
ptrdiff_t hscroll;
|
||||
|
||||
/* Minimum hscroll for automatic hscrolling. This is the value
|
||||
the user has set, by set-window-hscroll for example. */
|
||||
int min_hscroll;
|
||||
ptrdiff_t min_hscroll;
|
||||
|
||||
/* Displayed buffer's text modification events counter as of last time
|
||||
display completed. */
|
||||
|
|
|
|||
|
|
@ -1258,7 +1258,7 @@ string_from_display_spec (Lisp_Object spec)
|
|||
static inline int
|
||||
window_hscroll_limited (struct window *w, struct frame *f)
|
||||
{
|
||||
int window_hscroll = w->hscroll;
|
||||
ptrdiff_t window_hscroll = w->hscroll;
|
||||
int window_text_width = window_box_width (w, TEXT_AREA);
|
||||
int colwidth = FRAME_COLUMN_WIDTH (f);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue