summaryrefslogtreecommitdiffstats
path: root/flags.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2016-04-27 17:56:58 -0700
committerKevin McCarthy <kevin@8t8.us>2016-04-27 17:56:58 -0700
commitc8bd15377ed657b7afbed1f74c6b052e06b19d23 (patch)
treed91533bb7f930f35922eec83fabd2381969307bc /flags.c
parentaf5fc52680152562bbcc8596ce6ae21a57db51d1 (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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/flags.c b/flags.c
index f0f3d812..f34b3755 100644
--- a/flags.c
+++ b/flags.c
@@ -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)
{