aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 54fd2953d76..36a50212372 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -3616,8 +3616,8 @@ w32_set_horizontal_scroll_bar_thumb (struct scroll_bar *bar,
3616 si.fMask = SIF_PAGE | SIF_POS | SIF_RANGE; 3616 si.fMask = SIF_PAGE | SIF_POS | SIF_RANGE;
3617 si.nMin = 0; 3617 si.nMin = 0;
3618 si.nMax = whole; 3618 si.nMax = whole;
3619 /* Allow nPage to be one larger than nPos so we don't allow to scroll 3619 /* Allow nPage to be one larger than nPos so we don't allow the scrolling
3620 an already fully visible buffer. */ 3620 of an already fully visible buffer. */
3621 si.nPage = min (portion, si.nMax) + 1; 3621 si.nPage = min (portion, si.nMax) + 1;
3622 si.nPos = min (position, si.nMax); 3622 si.nPos = min (position, si.nMax);
3623 SetScrollInfo (w, SB_CTL, &si, TRUE); 3623 SetScrollInfo (w, SB_CTL, &si, TRUE);