Minor changes.

This commit is contained in:
= 2022-06-02 20:29:57 +05:30
parent d749642608
commit 29a9bd5056
1 changed files with 2 additions and 2 deletions

View File

@ -43,9 +43,9 @@ def menuFunction(menu = []):
pageIndex = 1 # current page
imenu = [] # internal list that is modified to only contain items of a specific page
endOfPage = pageLength # separate variable is required for this because the last page might have lesser entries than {pageLength}
imenu = menu[((pageLength)*(pageIndex-1)):(pageLength*pageIndex)]
endOfPage = len(imenu) # separate variable is required for this because the last page might have lesser entries than {pageLength}
if (menu == []): # do nothing if list is empty
curses.endwin()