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>.
This commit is contained in:
Eli Zaretskii 2021-12-04 10:19:56 +02:00
parent 745a732ae4
commit 00236cc802

View file

@ -17422,9 +17422,9 @@ cursor_row_fully_visible_p (struct window *w, bool force_p,
enum enum
{ {
SCROLLING_SUCCESS, SCROLLING_SUCCESS = 1,
SCROLLING_FAILED, SCROLLING_FAILED = 0,
SCROLLING_NEED_LARGER_MATRICES SCROLLING_NEED_LARGER_MATRICES = -1
}; };
/* If scroll-conservatively is more than this, never recenter. /* If scroll-conservatively is more than this, never recenter.