addstr ((char *)field); /* cast to get around bad prototypes */
NORMAL_COLOR;
mutt_refresh ();
- mutt_window_getyx (MuttMessageWindow, &ret, &x); /* don't care about y: avoiding unused var warning */
+ mutt_window_getyx (MuttMessageWindow, NULL, &x);
ret = _mutt_enter_string (buf, buflen, x, complete, multiple, files, numfiles, es);
}
while (ret == 1);
int row, col;
getyx (stdscr, row, col);
- *y = row - win->row_offset;
- *x = col - win->col_offset;
+ if (y)
+ *y = row - win->row_offset;
+ if (x)
+ *x = col - win->col_offset;
}