]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
listboxes need to be told to scroll instead of not to not scroll
authorewt <ewt>
Sat, 1 Aug 1998 15:43:10 +0000 (15:43 +0000)
committerewt <ewt>
Sat, 1 Aug 1998 15:43:10 +0000 (15:43 +0000)
windows.c

index 99a65e2c470b8fa800b27105c5c6a6e1cf95af24..e9d607db52dd04ea81789970ae8ef7bd6bfcd096 100644 (file)
--- a/windows.c
+++ b/windows.c
@@ -152,7 +152,7 @@ int newtWinMenu(char * title, char * text, int suggestedWidth, int flexDown,
     needScroll = i > maxListHeight;
 
     listbox = newtListbox(-1, -1, maxListHeight, 
-                 (needScroll ? 0 : NEWT_FLAG_NOSCROLL) | NEWT_FLAG_RETURNEXIT);
+                 (needScroll ? NEWT_FLAG_SCROLL : 0) | NEWT_FLAG_RETURNEXIT);
     for (i = 0; items[i]; i++) {
        newtListboxAddEntry(listbox, items[i], (void *) i);
     }