X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_curses.h;h=3bd9f96d5920c817f1771f30dbbe4129323e3e51;hp=5d7b9eaa3c7c3eb87c21e3da7755d8a4d1c4b03f;hb=daf6df95bfcc7efc888b488a825e467268f20d3c;hpb=355d6c883e8aafb8f424c22aa576cf8262ed9e58 diff --git a/mutt_curses.h b/mutt_curses.h index 5d7b9ea..3bd9f96 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -32,13 +32,17 @@ #ifdef HAVE_NCURSESW_NCURSES_H #include -#elif HAVE_NCURSES_NCURSES_H +#else +#ifdef HAVE_NCURSES_NCURSES_H #include -#elif HAVE_NCURSES_H +#else +#ifdef HAVE_NCURSES_H #include #else #include #endif +#endif +#endif #define M_ENTER_C '\n' #define M_ENTER_S "\n" @@ -52,7 +56,7 @@ #undef lines #endif /* lines */ -#define CLEARLINE_WIN(x) move(x,SidebarWidth), clrtoeol() +#define CLEARLINE_WIN(x) move(x,(option(OPTMBOXPANE)?SidebarWidth:0)), clrtoeol() #define CLEARLINE(x) move(x,0), clrtoeol() #define CENTERLINE(x,y) move(y, (COLS-strlen(x))/2), addstr(x) #define BEEP() do { if (option (OPTBEEP)) beep(); } while (0)