From 00236cc802a22555ad0299546a48420cbfbaaed5 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 4 Dec 2021 10:19:56 +0200 Subject: [PATCH] Fix the enumeration values returned by 'try_scrolling' * src/xdisp.c (try_scrolling): Make the enum values match the commentary. Reported by Po Lu . --- src/xdisp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 4642541823c..527a79b38da 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. -- 2.39.2