Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3505ea70
Commit
3505ea70
authored
May 18, 1993
by
Jim Blandy
Browse files
* xdisp.c (redisplay_window): Make the scrollbar reflect the
extent of the visible region, not the whole buffer.
parent
1334b321
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/xdisp.c
src/xdisp.c
+9
-1
No files found.
src/xdisp.c
View file @
3505ea70
...
...
@@ -1060,6 +1060,11 @@ redisplay_window (window, just_this_one)
int
start
,
end
,
whole
;
/* Calculate the start and end positions for the current window.
At some point, it would be nice to choose between scrollbars
which reflect the whole buffer size, with special markers
indicating narrowing, and scrollbars which reflect only the
visible region.
Note that minibuffers sometimes aren't displaying any text. */
if
(
!
MINI_WINDOW_P
(
w
)
||
(
w
==
XWINDOW
(
minibuf_window
)
&&
!
echo_area_glyphs
))
...
...
@@ -1068,7 +1073,10 @@ redisplay_window (window, just_this_one)
/* I don't think this is guaranteed to be right. For the
moment, we'll pretend it is. */
end
=
Z
-
XINT
(
w
->
window_end_pos
);
whole
=
Z
-
BEG
;
whole
=
ZV
-
BEGV
;
if
(
end
<
start
)
end
=
start
;
if
(
whole
>
(
end
-
start
))
whole
=
end
-
start
;
}
else
start
=
end
=
whole
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment