diff options
| author | Eli Zaretskii | 2012-07-05 18:04:57 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-07-05 18:04:57 +0300 |
| commit | d6e7bf450c0a084927d533cb6913bc5f540a0032 (patch) | |
| tree | 32a92089fbf91bc9f7021a221a9797e0f4e6b8bc /src/window.h | |
| parent | 431391ec72c1c6ef324201ee00eabaf5399480dc (diff) | |
| download | emacs-d6e7bf450c0a084927d533cb6913bc5f540a0032.tar.gz emacs-d6e7bf450c0a084927d533cb6913bc5f540a0032.zip | |
Fix bug #11857 with messed up display for insanely large hscroll values.
src/xdisp.c (window_hscroll_limited): New function.
(pos_visible_p, init_iterator): Use it to avoid overflow of pixel
coordinates when window's hscroll is set to insanely large
values.
src/window.h (struct window) <hscroll, min_hscroll>: Change type to 'int'.
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.h b/src/window.h index 10cabed979b..2684713eb6b 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 | ptrdiff_t hscroll; | 241 | int 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 | ptrdiff_t min_hscroll; | 245 | int 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. */ |