projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
745a732
)
Fix the enumeration values returned by 'try_scrolling'
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 4 Dec 2021 08:19:56 +0000
(10:19 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 4 Dec 2021 08:19:56 +0000
(10:19 +0200)
* src/xdisp.c (try_scrolling): Make the enum values match the
commentary. Reported by Po Lu <luangruo@yahoo.com>.
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 4642541823cc283f303b185e5f907893b09877c3..527a79b38da5fdde1791b05e28546210cd93177c 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-17422,9
+17422,9
@@
cursor_row_fully_visible_p (struct window *w, bool force_p,
enum
{
- SCROLLING_SUCCESS,
- SCROLLING_FAILED,
- SCROLLING_NEED_LARGER_MATRICES
+ SCROLLING_SUCCESS
= 1
,
+ SCROLLING_FAILED
= 0
,
+ SCROLLING_NEED_LARGER_MATRICES
= -1
};
/* If scroll-conservatively is more than this, never recenter.