ui/ncurses: Fix pad size check