Remove use of isupper.
authorayin <ayin>
Sat, 29 Dec 2007 14:52:55 +0000 (14:52 +0000)
committerayin <ayin>
Sat, 29 Dec 2007 14:52:55 +0000 (14:52 +0000)
src/scrollbar.h

index 53ac5957d95bb3dc46a88675a536628ab6df9e43..14454a2b5acdf7cd5269adcc16b84e964c7b8501 100644 (file)
@@ -28,7 +28,7 @@ typedef struct {
 #define scrollbar_isMotion()    (scrollBar.state == 'm')
 #define scrollbar_isUp()        (scrollBar.state == 'U')
 #define scrollbar_isDn()        (scrollBar.state == 'D')
-#define scrollbar_isUpDn()      isupper (scrollBar.state)
+#define scrollbar_isUpDn()      (scrollbar_isUp () || scrollbar_isDn ())
 #define isScrollbarWindow(w)    (scrollBar.state && (w) == scrollBar.win)
 
 #define scrollbarnext_dnval()   (scrollBar.end + (scrollBar.width + 1))