]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the enumeration values returned by 'try_scrolling'
authorEli Zaretskii <eliz@gnu.org>
Sat, 4 Dec 2021 08:19:56 +0000 (10:19 +0200)
committerEli 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

index 4642541823cc283f303b185e5f907893b09877c3..527a79b38da5fdde1791b05e28546210cd93177c 100644 (file)
@@ -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.