From: Eli Zaretskii Date: Sat, 4 Dec 2021 08:19:56 +0000 (+0200) Subject: Fix the enumeration values returned by 'try_scrolling' X-Git-Tag: emacs-28.0.91~87 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=00236cc802;p=emacs.git Fix the enumeration values returned by 'try_scrolling' * src/xdisp.c (try_scrolling): Make the enum values match the commentary. Reported by Po Lu . --- 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.