int mutt_window_mvprintw(struct MuttWindow *win, int row, int col, const char *fmt, ...)
{
- va_list ap;
- int rc;
-
- rc = mutt_window_move(win, row, col);
+ int rc = mutt_window_move(win, row, col);
if (rc != ERR)
{
+ va_list ap;
va_start(ap, fmt);
rc = vw_printw(stdscr, fmt, ap);
va_end(ap);
if (!win || !stdscr)
return;
- int row, col, curcol;
-
if (win->col_offset + win->cols == COLS)
clrtoeol();
else
{
+ int row, col;
getyx(stdscr, row, col);
- curcol = col;
+ int curcol = col;
while (curcol < win->col_offset + win->cols)
{
addch(' ');
void mutt_paddstr(int n, const char *s)
{
wchar_t wc;
- int w;
size_t k;
size_t len = mutt_str_strlen(s);
mbstate_t mbstate;
}
if (!IsWPrint(wc))
wc = '?';
- w = wcwidth(wc);
+ const int w = wcwidth(wc);
if (w >= 0)
{
if (w > n)