diff options
author | Kevin McCarthy <kevin@8t8.us> | 2016-04-27 17:56:58 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2016-04-27 17:56:58 -0700 |
commit | c8bd15377ed657b7afbed1f74c6b052e06b19d23 (patch) | |
tree | d91533bb7f930f35922eec83fabd2381969307bc /flags.c | |
parent | af5fc52680152562bbcc8596ce6ae21a57db51d1 (diff) |
Fix remaining direct usages of COLS/LINES to use mutt window functions.
Most of these were just message update/clearing.
Diffstat (limited to 'flags.c')
-rw-r--r-- | flags.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -322,18 +322,19 @@ int mutt_change_flag (HEADER *h, int bf) int i, flag; event_t event; - mvprintw (LINES - 1, 0, "%s? (D/N/O/r/*/!): ", bf ? _("Set flag") : _("Clear flag")); - clrtoeol (); + mutt_window_mvprintw (MuttMessageWindow, 0, 0, + "%s? (D/N/O/r/*/!): ", bf ? _("Set flag") : _("Clear flag")); + mutt_window_clrtoeol (MuttMessageWindow); event = mutt_getch(); i = event.ch; if (i < 0) { - CLEARLINE (LINES-1); + mutt_window_clearline (MuttMessageWindow, 0); return (-1); } - CLEARLINE (LINES-1); + mutt_window_clearline (MuttMessageWindow, 0); switch (i) { |