[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 00236cc: Fix the enumeration values returned by 'try_scrolling'
From: |
Eli Zaretskii |
Subject: |
emacs-28 00236cc: Fix the enumeration values returned by 'try_scrolling' |
Date: |
Sat, 4 Dec 2021 03:20:53 -0500 (EST) |
branch: emacs-28
commit 00236cc802a22555ad0299546a48420cbfbaaed5
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Fix the enumeration values returned by 'try_scrolling'
* src/xdisp.c (try_scrolling): Make the enum values match the
commentary. Reported by Po Lu <luangruo@yahoo.com>.
---
src/xdisp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/xdisp.c b/src/xdisp.c
index 4642541..527a79b 100644
--- 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 00236cc: Fix the enumeration values returned by 'try_scrolling',
Eli Zaretskii <=