[asterisk-commits] branch russell/menuselect_buildoptions r34158 - /team/russell/menuselect_buil...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jun 14 14:33:06 MST 2006


Author: russell
Date: Wed Jun 14 16:33:06 2006
New Revision: 34158

URL: http://svn.digium.com/view/asterisk?rev=34158&view=rev
Log:
fix some module info display issues

Modified:
    team/russell/menuselect_buildoptions/build_tools/menuselect_curses.c

Modified: team/russell/menuselect_buildoptions/build_tools/menuselect_curses.c
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/build_tools/menuselect_curses.c?rev=34158&r1=34157&r2=34158&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/build_tools/menuselect_curses.c (original)
+++ team/russell/menuselect_buildoptions/build_tools/menuselect_curses.c Wed Jun 14 16:33:06 2006
@@ -199,18 +199,20 @@
 		}
 		waddstr(menu, buf);
 
+		if (curopt + 1 == memnum)
+			display_mem_info(menu, mem, start, end);
+
 		AST_LIST_TRAVERSE(&mem->buildopts, bop, list) {
 			if (memnum++ == end)
 				break;
+			if (curopt + 1 == memnum)
+				display_mem_info(menu, mem, start, end);
 			snprintf(buf, sizeof(buf), "        <%s> %s", bop->enabled ? "*" : " ", bop->name);
 			wmove(menu, linenum++, max_x / 2 - 10);
 			waddstr(menu, buf);
 			if (memnum == end)
 				break;
 		}
-
-		if (curopt + 1 <= memnum)
-			display_mem_info(menu, mem, start, end);
 
 		if (memnum >= end)
 			break;



More information about the asterisk-commits mailing list