aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorPaul Eggert2016-01-30 11:43:26 -0800
committerPaul Eggert2016-01-30 11:43:26 -0800
commitcb4e054e41cdb7e398351a5ae8224759e721349e (patch)
treeae2bec4f10425bd61e2a90563edc178d382bb4b8 /src/w32term.c
parente6d575316a42946aac6d83c9587f09afd1a59d98 (diff)
parent60902756b0d794b16b9c1c67c4c40a3ac04d1c1b (diff)
downloademacs-cb4e054e41cdb7e398351a5ae8224759e721349e.tar.gz
emacs-cb4e054e41cdb7e398351a5ae8224759e721349e.zip
-
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);