- if (m_strwidth(prompt) > COLS - extra_space) {
- mutt_format_string (prompt, sizeof (prompt) - 4,
- 0, COLS - extra_space, 0, 0,
+ if (m_strwidth(prompt) > getmaxx(main_w) - extra_space) {
+ mutt_format_string (prompt, sizeof (prompt) - 4, 0,
+ getmaxx(main_w) - extra_space, 0, 0,