diff options
| author | Dmitry Antipov | 2012-12-12 19:33:30 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-12-12 19:33:30 +0400 |
| commit | 2dd61a9b332356fa24d96527a71ef4fe29fb9e5c (patch) | |
| tree | 880c9e07a5ca6bf5cf04ef80990704b2ada5730b /src/window.c | |
| parent | d0efe6ec5bc90a206c194a429e6cdfd86a8fb3d5 (diff) | |
| download | emacs-2dd61a9b332356fa24d96527a71ef4fe29fb9e5c.tar.gz emacs-2dd61a9b332356fa24d96527a71ef4fe29fb9e5c.zip | |
* dispnew.c (set_window_cursor_after_update): Use clip_to_bounds.
* gtkutil.c (xg_set_toolkit_scroll_bar_thumb):
* window.c (Frecenter):
* xdisp.c (resize_mini_window, hscroll_window_tree, draw_glyphs):
* xterm.c (x_set_toolkit_scroll_bar_thumb): Likewise.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index f696e3c2a1b..28c3bf93553 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -5347,8 +5347,8 @@ and redisplay normally--don't erase and redraw the frame. */) | |||
| 5347 | iarg += ht; | 5347 | iarg += ht; |
| 5348 | 5348 | ||
| 5349 | /* Don't let it get into the margin at either top or bottom. */ | 5349 | /* Don't let it get into the margin at either top or bottom. */ |
| 5350 | iarg = max (iarg, this_scroll_margin); | 5350 | iarg = clip_to_bounds (this_scroll_margin, iarg, |
| 5351 | iarg = min (iarg, ht - this_scroll_margin - 1); | 5351 | ht - this_scroll_margin - 1); |
| 5352 | 5352 | ||
| 5353 | pos = *vmotion (PT, - iarg, w); | 5353 | pos = *vmotion (PT, - iarg, w); |
| 5354 | charpos = pos.bufpos; | 5354 | charpos = pos.bufpos; |