Skip to content

Commit ee83391

Browse files
committed
fix: serial index numbering bug
1 parent 833f238 commit ee83391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/menuPrint.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ www.r-site.net
3737
clear();
3838
int i=0;
3939
for(;i<m.sz;i++)
40-
printPrompt(*(prompt*)pgmPtrNear(m.data[i]),i==m.sel,i+1,i-top,0,m.width);
41-
if (drawExit) printPrompt(menu::exitOption,m.sel==m.sz,0,i-top,0,m.width);
40+
printPrompt(*(prompt*)pgmPtrNear(m.data[i]),i==m.sel,i+1,0,i-top,m.width);
41+
if (drawExit) printPrompt(menu::exitOption,m.sel==m.sz,0,0,i-top,m.width);
4242
lastTop=top;
4343
lastSel=m.sel;
4444
drawn=&m;

0 commit comments

Comments
 (0)