Skip to content

Commit 77e9591

Browse files
committed
fix a couple of printw fmt strings
two %d really needs %zu
1 parent 6a897d0 commit 77e9591

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ redraw_modeline(struct tab *tab)
784784
else
785785
wprintw(modeline, "%.0f%% ", pct);
786786

787-
wprintw(modeline, "%d/%d %s ",
787+
wprintw(modeline, "%zu/%zu %s ",
788788
buffer->line_off + buffer->curs_y,
789789
buffer->line_max,
790790
tab->hist_cur->h);
@@ -849,7 +849,7 @@ do_redraw_minibuffer(void)
849849
wmove(echoarea, 0, 0);
850850

851851
if (in_minibuffer == MB_COMPREAD)
852-
wprintw(echoarea, "(%2d) ",
852+
wprintw(echoarea, "(%2zu) ",
853853
cmplbuf->line_max);
854854

855855
wprintw(echoarea, "%s", ministate.prompt);

0 commit comments

Comments
 (0)