summaryrefslogtreecommitdiffstats
path: root/help.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 /help.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 'help.c')
-rw-r--r--help.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/help.c b/help.c
index c48c68f4..3f0cf953 100644
--- a/help.c
+++ b/help.c
@@ -209,7 +209,7 @@ static void format_line (FILE *f, int ismacro,
/* don't try to press string into one line with less than 40 characters.
The double parenthesis avoids a gcc warning, sigh ... */
- if ((split = COLS < 40))
+ if ((split = MuttIndexWindow->cols < 40))
{
col_a = col = 0;
col_b = LONG_STRING;
@@ -217,8 +217,8 @@ static void format_line (FILE *f, int ismacro,
}
else
{
- col_a = COLS > 83 ? (COLS - 32) >> 2 : 12;
- col_b = COLS > 49 ? (COLS - 10) >> 1 : 19;
+ col_a = MuttIndexWindow->cols > 83 ? (MuttIndexWindow->cols - 32) >> 2 : 12;
+ col_b = MuttIndexWindow->cols > 49 ? (MuttIndexWindow->cols - 10) >> 1 : 19;
col = pad (f, mutt_strwidth(t1), col_a);
}
@@ -252,7 +252,7 @@ static void format_line (FILE *f, int ismacro,
{
while (*t3)
{
- n = COLS - col;
+ n = MuttIndexWindow->cols - col;
if (ismacro >= 0)
{
@@ -271,7 +271,7 @@ static void format_line (FILE *f, int ismacro,
}
else
{
- n += col - COLS;
+ n += col - MuttIndexWindow->cols;
if (option (OPTMARKERS))
++n;
}