summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-09-15 15:41:20 +0000
committerFrederic Culot <calcurse@culot.org>2006-09-15 15:41:20 +0000
commitb6df46019339ba63b3425a3bd5f265264af29621 (patch)
tree46015cb3f8793d82965d15d043be15cd1f88f8e5
parent2c57964553b89df91f57a2b3cfaeda3742612df9 (diff)
downloadcalcurse-b6df46019339ba63b3425a3bd5f265264af29621.tar.gz
calcurse-b6df46019339ba63b3425a3bd5f265264af29621.zip
help_screen() updated to take notify-bar into account
-rwxr-xr-xsrc/help.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/help.c b/src/help.c
index 2d0f91a..0b83e0a 100755
--- a/src/help.c
+++ b/src/help.c
@@ -1,4 +1,4 @@
-/* $calcurse: help.c,v 1.6 2006/09/09 20:06:47 culot Exp $ */
+/* $calcurse: help.c,v 1.7 2006/09/15 15:41:20 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -35,6 +35,8 @@
#include "custom.h"
#include "vars.h"
#include "utils.h"
+#include "apoint.h"
+#include "notify.h"
/*
* Write the desired help text inside the help pad, and return the number
@@ -73,7 +75,7 @@ void help_screen(int which_pan, int colr)
WINDOW *help_pad = NULL;
char label[80];
int ch = '?';
- int help_row = row - 3; //size of the help window
+ int help_row;
int help_col = col;
int title_lines = 3;
int pad_offset = 4;
@@ -313,6 +315,7 @@ void help_screen(int which_pan, int colr)
* Create the help window and panel. The panel is used to make
* the scrolling faster.
*/
+ help_row = (notify_bar()) ? row - 3 : row - 2;
help_win = newwin(help_row, help_col, 0, 0);
help_pad = newpad(MAX_LENGTH, pad_width);
box(help_win, 0, 0);