From: Pierre Habouzit Date: Sat, 11 Aug 2007 07:36:24 +0000 (+0200) Subject: get rid of slang X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=84bc6d1930165b21919541b3b24294a9d99c3541;p=apps%2Fmadmutt.git get rid of slang Signed-off-by: Pierre Habouzit --- diff --git a/.gitignore b/.gitignore index 0ba6bc7..7bab498 100644 --- a/.gitignore +++ b/.gitignore @@ -1,17 +1,23 @@ -madmutt -madmutt_dotlock - *.li -alias.c -buffy.c -charset.c -crypt.c -score.c +.*.sw? +.tags + +/madmutt +/madmutt_dotlock + +/alias.c +/buffy.c +/charset.c +/crypt.c +/score.c + +/config.h +/charset.gperf +/keymap_defs.h +/keymap_alldefs.h -config.h -charset.gperf -keymap_defs.h -keymap_alldefs.h +/.build* +/build CMakeCache.txt CMakeFiles diff --git a/CMakeLists.txt b/CMakeLists.txt index 90b91b4..d234c5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,6 @@ SET(MAILPATH CACHE STRING "Where new mail is spooled") OPTION(WITH_GPGME "Use GPGME [default: on]" ON) OPTION(WITH_NNTP "Build NNTP support [default: off]") OPTION(WITH_IDN "Use GNU libidn for domain names [default: off]") -OPTION(WITH_SLANG "Use S-Lang instead of ncurses [default:off]") OPTION(USE_FLOCK "Use flock to lock files [default: off]") OPTION(USE_FCNTL "Use fcntl to lock files [default: on]" ON) @@ -139,40 +138,28 @@ CHECK_FUNCTION_EXISTS(nl_langinfo HAVE_LANGINFO_CODESET) INCLUDE(CheckLibraryExists) INCLUDE(UsePkgConfig) -IF(WITH_SLANG) - IF(EXISTS ${CMAKE_INSTALL_PREFIX}/include/slang) - INCLUDE_DIRECTORIES(${CMAKE_INSTALL_PREFIX}/include/slang) - ELSEIF(EXISTS /usr/include/slang) - INCLUDE_DIRECTORIES(/usr/include/slang) - ENDIF(EXISTS ${CMAKE_INSTALL_PREFIX}/include/slang) - CHECK_LIBRARY_EXISTS(slang SLtt_get_terminfo "" USE_SLANG_CURSES) - IF(NOT USE_SLANG_CURSES) - MESSAGE(FATAL_ERROR "s-lang not found") - ENDIF(NOT USE_SLANG_CURSES) -ELSE(WITH_SLANG) - IF(HAVE_NCURSESW_NCURSES_H) - SET(CMAKE_REQUIRED_INCLUDES "ncursesw/ncurses.h") - SET(MUTTLIBS "${MUTTLIBS} -lncursesw") - ELSEIF(HAVE_NCURSES_H) - SET(CMAKE_REQUIRED_INCLUDES "ncurses.h") - SET(MUTTLIBS "${MUTTLIBS} -lncurses") - ELSEIF(HAVE_NCURSES_H OR HAVE_NCURSES_NCURSES_H) - SET(CMAKE_REQUIRED_INCLUDES "ncurses/ncurses.h") - SET(MUTTLIBS "${MUTTLIBS} -lncurses") - ELSE(HAVE_NCURSESW_NCURSES_H) - MESSAGE(FATAL_ERROR "could not find ncurses.h") - ENDIF(HAVE_NCURSESW_NCURSES_H) - SET(CMAKE_REQUIRED_LIBRARIES ${MUTTLIBS}) - CHECK_FUNCTION_EXISTS(start_color HAVE_START_COLOR) - CHECK_FUNCTION_EXISTS(typeahead HAVE_TYPEAHEAD) - CHECK_FUNCTION_EXISTS(bkgdset HAVE_BKGDSET) - CHECK_FUNCTION_EXISTS(curs_set HAVE_CURS_SET) - CHECK_FUNCTION_EXISTS(meta HAVE_META) - CHECK_FUNCTION_EXISTS(use_default_colors HAVE_USE_DEFAULT_COLORS) - CHECK_FUNCTION_EXISTS(resizeterm HAVE_RESIZETERM) - SET(CMAKE_REQUIRED_LIBRARIES) - SET(CMAKE_REQUIRED_INCLUDES) -ENDIF(WITH_SLANG) +IF(HAVE_NCURSESW_NCURSES_H) + SET(CMAKE_REQUIRED_INCLUDES "ncursesw/ncurses.h") + SET(MUTTLIBS "${MUTTLIBS} -lncursesw") +ELSEIF(HAVE_NCURSES_H) + SET(CMAKE_REQUIRED_INCLUDES "ncurses.h") + SET(MUTTLIBS "${MUTTLIBS} -lncurses") +ELSEIF(HAVE_NCURSES_H OR HAVE_NCURSES_NCURSES_H) + SET(CMAKE_REQUIRED_INCLUDES "ncurses/ncurses.h") + SET(MUTTLIBS "${MUTTLIBS} -lncurses") +ELSE(HAVE_NCURSESW_NCURSES_H) + MESSAGE(FATAL_ERROR "could not find ncurses.h") +ENDIF(HAVE_NCURSESW_NCURSES_H) +SET(CMAKE_REQUIRED_LIBRARIES ${MUTTLIBS}) +CHECK_FUNCTION_EXISTS(start_color HAVE_START_COLOR) +CHECK_FUNCTION_EXISTS(typeahead HAVE_TYPEAHEAD) +CHECK_FUNCTION_EXISTS(bkgdset HAVE_BKGDSET) +CHECK_FUNCTION_EXISTS(curs_set HAVE_CURS_SET) +CHECK_FUNCTION_EXISTS(meta HAVE_META) +CHECK_FUNCTION_EXISTS(use_default_colors HAVE_USE_DEFAULT_COLORS) +CHECK_FUNCTION_EXISTS(resizeterm HAVE_RESIZETERM) +SET(CMAKE_REQUIRED_LIBRARIES) +SET(CMAKE_REQUIRED_INCLUDES) PKGCONFIG(lua5.1 lua_INCDIR lua_LINKDIR lua_LDFLAGS lua_CFLAGS) MESSAGE(STATUS "found lua5.1 at: INCDIR ${lua_INCDIR}") diff --git a/config.h.cmake b/config.h.cmake index 43d5853..23dc287 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -78,4 +78,3 @@ #cmakedefine USE_FLOCK 1 #cmakedefine USE_HCACHE 1 #cmakedefine USE_NNTP 1 -#cmakedefine USE_SLANG_CURSES 1 diff --git a/functions.def b/functions.def index 931ead6..d681100 100644 --- a/functions.def +++ b/functions.def @@ -32,9 +32,6 @@ * * Notes: * - * - If you want to bind \n or \r, use M_ENTER_S so that it will work - * correctly under both ncurses and S-Lang - * * - If you need to bind a control char, use the octal value because the \cX * construct does not work at this level. * @@ -76,7 +73,7 @@ LIST(OpGeneric) ITEM("tag-prefix-cond", OP_TAG_PREFIX_COND, NULL) ITEM("end-cond", OP_END_COND, NULL) ITEM("shell-escape", OP_SHELL_ESCAPE, "!") - ITEM("select-entry", OP_GENERIC_SELECT_ENTRY, M_ENTER_S) + ITEM("select-entry", OP_GENERIC_SELECT_ENTRY, "\n") ITEM("search", OP_SEARCH, "/") ITEM("search-reverse", OP_SEARCH_REVERSE, "\033/") ITEM("search-opposite", OP_SEARCH_OPPOSITE, NULL) @@ -166,7 +163,7 @@ LIST(OpMain) #ifdef USE_NNTP ITEM("catchup", OP_CATCHUP, "y") #endif - ITEM("display-message", OP_DISPLAY_MESSAGE, M_ENTER_S) + ITEM("display-message", OP_DISPLAY_MESSAGE, "\n") ITEM("buffy-list", OP_BUFFY_LIST, ".") ITEM("sync-mailbox", OP_MAIN_SYNC_FOLDER, "$") ITEM("display-address", OP_DISPLAY_ADDRESS, "@") @@ -274,7 +271,7 @@ LIST(OpPager) ITEM("search", OP_SEARCH, "/") ITEM("search-reverse", OP_SEARCH_REVERSE, "\033/") ITEM("search-opposite", OP_SEARCH_OPPOSITE, NULL) - ITEM("next-line", OP_NEXT_LINE, M_ENTER_S) + ITEM("next-line", OP_NEXT_LINE, "\n") ITEM("jump", OP_JUMP, NULL) ITEM("next-unread", OP_MAIN_NEXT_UNREAD, NULL) ITEM("previous-new", OP_MAIN_PREV_NEW, NULL) @@ -319,7 +316,7 @@ LIST(OpAttach) ITEM("list-reply", OP_LIST_REPLY, "L") ITEM("forward-message", OP_FORWARD_MESSAGE, "f") ITEM("view-text", OP_ATTACH_VIEW_TEXT, "T") - ITEM("view-attach", OP_VIEW_ATTACH, M_ENTER_S) + ITEM("view-attach", OP_VIEW_ATTACH, "\n") ITEM("delete-entry", OP_DELETE, "d") ITEM("undelete-entry", OP_UNDELETE, "u") ITEM("collapse-parts", OP_ATTACH_COLLAPSE, "v") @@ -364,7 +361,7 @@ LIST(OpCompose) ITEM("toggle-unlink", OP_COMPOSE_TOGGLE_UNLINK, "u") ITEM("toggle-recode", OP_COMPOSE_TOGGLE_RECODE, NULL) ITEM("update-encoding", OP_COMPOSE_UPDATE_ENCODING, "U") - ITEM("view-attach", OP_VIEW_ATTACH, M_ENTER_S) + ITEM("view-attach", OP_VIEW_ATTACH, "\n") ITEM("send-message", OP_COMPOSE_SEND_MESSAGE, "y") ITEM("pipe-entry", OP_PIPE, "|") ITEM("pgp-menu", OP_COMPOSE_PGP_MENU, "p") @@ -457,7 +454,7 @@ LIST(OpSmime) ENDLIST LIST(OpMix) - ITEM("accept", OP_MIX_USE, M_ENTER_S) + ITEM("accept", OP_MIX_USE, "\n") ITEM("append", OP_MIX_APPEND, "a") ITEM("insert", OP_MIX_INSERT, "i") ITEM("delete", OP_MIX_DELETE, "d") diff --git a/keymap.c b/keymap.c index ab8ad63..106df72 100644 --- a/keymap.c +++ b/keymap.c @@ -57,7 +57,7 @@ static struct mapping_t KeyNames[] = { #ifdef KEY_ENTER {"", KEY_ENTER}, #endif - {"", M_ENTER_C}, + {"", '\n'}, {"", '\033'}, {"", '\t'}, {"", ' '}, diff --git a/lib-sys/mutt_signal.c b/lib-sys/mutt_signal.c index 115460d..8609671 100644 --- a/lib-sys/mutt_signal.c +++ b/lib-sys/mutt_signal.c @@ -51,14 +51,14 @@ static void sighandler (int sig) if (!IsEndwin) refresh (); mutt_curs_set (-1); -#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM) +#if defined (HAVE_RESIZETERM) /* We don't receive SIGWINCH when suspended; however, no harm is done by * just assuming we received one, and triggering the 'resize' anyway. */ SigWinch = 1; #endif break; -#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM) +#if defined (HAVE_RESIZETERM) case SIGWINCH: SigWinch = 1; break; @@ -72,13 +72,6 @@ static void sighandler (int sig) errno = save_errno; } -#ifdef USE_SLANG_CURSES -int mutt_intr_hook (void) -{ - return (-1); -} -#endif /* USE_SLANG_CURSES */ - void mutt_signal_initialize (void) { struct sigaction act; @@ -112,7 +105,7 @@ void mutt_signal_initialize (void) sigaction (SIGCONT, &act, NULL); sigaction (SIGTSTP, &act, NULL); sigaction (SIGINT, &act, NULL); -#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM) +#if defined (HAVE_RESIZETERM) sigaction (SIGWINCH, &act, NULL); #endif @@ -125,17 +118,6 @@ void mutt_signal_initialize (void) /* we don't want to mess with stopped children */ act.sa_flags |= SA_NOCLDSTOP; sigaction (SIGCHLD, &act, NULL); - -#ifdef USE_SLANG_CURSES - /* This bit of code is required because of the implementation of - * SLcurses_wgetch(). If a signal is received (like SIGWINCH) when we - * are in blocking mode, SLsys_getkey() will not return an error unless - * a handler function is defined and it returns -1. This is needed so - * that if the user resizes the screen while at a prompt, it will just - * abort and go back to the main-menu. - */ - SLang_getkey_intr_hook = mutt_intr_hook; -#endif } /* signals which are important to block while doing critical ops */ @@ -147,7 +129,7 @@ void mutt_block_signals (void) sigaddset (&Sigset, SIGHUP); sigaddset (&Sigset, SIGTSTP); sigaddset (&Sigset, SIGINT); -#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM) +#if defined (HAVE_RESIZETERM) sigaddset (&Sigset, SIGWINCH); #endif sigprocmask (SIG_BLOCK, &Sigset, 0); diff --git a/lib-ui/color.c b/lib-ui/color.c index 4d87857..c503724 100644 --- a/lib-ui/color.c +++ b/lib-ui/color.c @@ -47,7 +47,7 @@ static struct mapping_t Colors[] = { {"red", COLOR_RED}, {"white", COLOR_WHITE}, {"yellow", COLOR_YELLOW}, -#if defined (USE_SLANG_CURSES) || defined (HAVE_USE_DEFAULT_COLORS) +#if defined (HAVE_USE_DEFAULT_COLORS) {"default", COLOR_DEFAULT}, #endif {0, 0} @@ -129,51 +129,11 @@ void ci_start_color (void) start_color (); } -#ifdef USE_SLANG_CURSES -static char *get_color_name (char *dest, size_t destlen, int val) -{ - static char *missing[3] = { "brown", "lightgray", "default" }; - int i; - - switch (val) { - case COLOR_YELLOW: - m_strcpy(dest, destlen, missing[0]); - return dest; - - case COLOR_WHITE: - m_strcpy(dest, destlen, missing[1]); - return dest; - - case COLOR_DEFAULT: - m_strcpy(dest, destlen, missing[2]); - return dest; - } - - for (i = 0; Colors[i].name; i++) { - if (Colors[i].value == val) { - m_strcpy(dest, destlen, Colors[i].name); - return dest; - } - } - - /* Sigh. If we got this far, the color is of the form 'colorN' - * Slang can handle this itself, so just return 'colorN' - */ - - snprintf (dest, destlen, "color%d", val); - return dest; -} -#endif - int mutt_alloc_color (int fg, int bg) { COLOR_LIST *p = ColorList; int i; -#if defined (USE_SLANG_CURSES) - char fgc[STRING], bgc[STRING]; -#endif - /* check to see if this color is already allocated to save space */ while (p) { if (p->fg == fg && p->bg == bg) { @@ -210,12 +170,7 @@ int mutt_alloc_color (int fg, int bg) p->bg = bg; p->fg = fg; -#if defined (USE_SLANG_CURSES) - if (fg == COLOR_DEFAULT || bg == COLOR_DEFAULT) - SLtt_set_color (i, NULL, get_color_name (fgc, sizeof (fgc), fg), - get_color_name (bgc, sizeof (bgc), bg)); - else -#elif defined (HAVE_USE_DEFAULT_COLORS) +#if defined (HAVE_USE_DEFAULT_COLORS) if (fg == COLOR_DEFAULT) fg = -1; if (bg == COLOR_DEFAULT) diff --git a/lib-ui/curs_lib.c b/lib-ui/curs_lib.c index 937ada4..7880f51 100644 --- a/lib-ui/curs_lib.c +++ b/lib-ui/curs_lib.c @@ -438,7 +438,7 @@ void mutt_flushinp (void) flushinp (); } -#if (defined(USE_SLANG_CURSES) || defined(HAVE_CURS_SET)) +#if defined(HAVE_CURS_SET) /* The argument can take 3 values: * -1: restore the value of the last call * 0: make the cursor invisible diff --git a/lib-ui/curs_main.c b/lib-ui/curs_main.c index e32a25b..5af770b 100644 --- a/lib-ui/curs_main.c +++ b/lib-ui/curs_main.c @@ -563,7 +563,7 @@ int mutt_index_menu (void) move (menu->current - menu->top + menu->offset, COLS - 1); mutt_refresh (); -#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM) +#if defined (HAVE_RESIZETERM) if (SigWinch) { mutt_flushinp (); mutt_resize_screen (); diff --git a/lib-ui/curses.h b/lib-ui/curses.h index c33a93d..39bfad0 100644 --- a/lib-ui/curses.h +++ b/lib-ui/curses.h @@ -13,44 +13,15 @@ #include #include "mutt.h" -#ifdef USE_SLANG_CURSES - -#ifndef unix /* this symbol is not defined by the hp-ux compiler (sigh) */ -#define unix -#endif /* unix */ - -#include "slcurses.h" - -#define KEY_DC SL_KEY_DELETE -#define KEY_IC SL_KEY_IC - -/* - * ncurses and SLang seem to send different characters when the Enter key is - * pressed, so define some macros to properly detect the Enter key. - */ -#define M_ENTER_C '\r' -#define M_ENTER_S "\r" - -#else - -#ifdef HAVE_NCURSESW_NCURSES_H +#if defined(HAVE_NCURSESW_NCURSES_H) #include -#else -#ifdef HAVE_NCURSES_NCURSES_H +#elif defined(HAVE_NCURSES_NCURSES_H) #include -#else -#ifdef HAVE_NCURSES_H +#elif defined(HAVE_NCURSES_H) #include #else #include #endif -#endif -#endif - -#define M_ENTER_C '\n' -#define M_ENTER_S "\n" - -#endif /* USE_SLANG_CURSES */ /* AIX defines ``lines'' in , but it's used as a var name in * various places in Mutt @@ -64,17 +35,17 @@ #define CENTERLINE(x,y) move(y, (COLS-strlen(x))/2), addstr(x) #define BEEP() do { if (mod_core.beep) beep(); } while (0) -#if ! (defined(USE_SLANG_CURSES) || defined(HAVE_CURS_SET)) +#if !defined(HAVE_CURS_SET) #define curs_set(x) #endif -#if !defined(USE_SLANG_CURSES) && defined(HAVE_BKGDSET) +#if defined(HAVE_BKGDSET) #define BKGDSET(x) bkgdset (ColorDefs[x] | ' ') #else #define BKGDSET(x) #endif -#if (defined(USE_SLANG_CURSES) || defined(HAVE_CURS_SET)) +#if defined(HAVE_CURS_SET) void mutt_curs_set (int); #else #define mutt_curs_set(x) diff --git a/lib-ui/menu.c b/lib-ui/menu.c index ddcccf5..b023ece 100644 --- a/lib-ui/menu.c +++ b/lib-ui/menu.c @@ -782,7 +782,7 @@ int mutt_menuLoop (MUTTMENU * menu) mutt_curs_set (1); -#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM) +#if defined (HAVE_RESIZETERM) if (SigWinch) { mutt_resize_screen (); menu->redraw = REDRAW_FULL; diff --git a/lib-ui/resize.c b/lib-ui/resize.c index 74cd58c..fe0e965 100644 --- a/lib-ui/resize.c +++ b/lib-ui/resize.c @@ -9,7 +9,7 @@ #include -#if defined(USE_SLANG_CURSES) || defined(HAVE_RESIZETERM) +#if defined(HAVE_RESIZETERM) #include #ifdef HAVE_SYS_IOCTL_H @@ -28,41 +28,31 @@ void mutt_resize_screen (void) int fd; struct winsize w; -#ifdef HAVE_RESIZETERM - int SLtt_Screen_Rows, SLtt_Screen_Cols; -#endif + int rows, cols; - SLtt_Screen_Rows = -1; - SLtt_Screen_Cols = -1; + rows = -1; + cols = -1; if ((fd = open ("/dev/tty", O_RDONLY)) != -1) { if (ioctl (fd, TIOCGWINSZ, &w) != -1) { - SLtt_Screen_Rows = w.ws_row; - SLtt_Screen_Cols = w.ws_col; + rows = w.ws_row; + cols = w.ws_col; } close (fd); } - if (SLtt_Screen_Rows <= 0) { + if (rows <= 0) { if ((cp = getenv ("LINES")) != NULL) { - SLtt_Screen_Rows = atoi (cp); + rows = atoi (cp); } else - SLtt_Screen_Rows = 24; + rows = 24; } - if (SLtt_Screen_Cols <= 0) { + if (cols <= 0) { if ((cp = getenv ("COLUMNS")) != NULL) - SLtt_Screen_Cols = atoi (cp); + cols = atoi (cp); else - SLtt_Screen_Cols = 80; + cols = 80; } -#ifdef USE_SLANG_CURSES - delwin (stdscr); - SLsmg_reset_smg (); - SLsmg_init_smg (); - stdscr = newwin (0, 0, 0, 0); - keypad (stdscr, TRUE); -#else - resizeterm (SLtt_Screen_Rows, SLtt_Screen_Cols); -#endif + resizeterm (rows, cols); } -#endif /* defined(USE_SLANG_CURSES) || defined(HAVE_RESIZETERM) */ +#endif /* defined(HAVE_RESIZETERM) */ diff --git a/main.c b/main.c index f7734fb..a47a827 100644 --- a/main.c +++ b/main.c @@ -144,8 +144,6 @@ static void show_version (void) #ifdef NCURSES_VERSION printf (" ncurses %s\n", NCURSES_VERSION); -#elif defined(USE_SLANG_CURSES) - printf (" slang %d\n", SLANG_VERSION); #endif #ifdef _LIBICONV_VERSION @@ -222,15 +220,9 @@ static void start_curses (void) { km_init (); /* must come before mutt_init */ -#ifdef USE_SLANG_CURSES - SLtt_Ignore_Beep = 1; /* don't do that #*$@^! annoying visual beep! */ - SLsmg_Display_Eight_Bit = 128; /* characters above this are printable */ - SLtt_set_color (0, NULL, "default", "default"); -#else /* should come before initscr() so that ncurses 4.2 doesn't try to install its own SIGWINCH handler */ mutt_signal_initialize (); -#endif if (initscr () == NULL) { puts _("Error initializing terminal."); diff --git a/pager.c b/pager.c index dd1a621..42abff6 100644 --- a/pager.c +++ b/pager.c @@ -108,7 +108,7 @@ typedef struct _ansi_attr { static short InHelp = 0; -#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM) +#if defined (HAVE_RESIZETERM) static struct resize { int line; int SearchCompiled; @@ -1231,14 +1231,6 @@ display_line (FILE * f, off_t *last_pos, struct line_t **lineInfo, int n, /* display the line */ format_line (lineInfo, n, buf, flags, &a, cnt, &ch, &vch, &col, &special); - /* avoid a bug in ncurses... */ -#ifndef USE_SLANG_CURSES - if (col == 0) { - SETCOLOR (MT_COLOR_NORMAL); - addch (' '); - } -#endif - /* end the last color pattern (needed by S-Lang) */ if (special || (col != COLS && (flags & (M_SHOWCOLOR | M_SEARCH)))) resolve_color (*lineInfo, n, vch, flags, 0, &a); @@ -1260,15 +1252,7 @@ display_line (FILE * f, off_t *last_pos, struct line_t **lineInfo, int n, bkgdset (def_color | ' '); #endif } - - /* ncurses always wraps lines when you get to the right side of the - * screen, but S-Lang seems to only wrap if the next character is *not* - * a newline (grr!). - */ -#ifndef USE_SLANG_CURSES - if (col < COLS) -#endif - addch ('\n'); + addch ('\n'); /* * reset the color back to normal. This *must* come after the @@ -1456,7 +1440,7 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t * extra) SETCOLOR (MT_COLOR_NORMAL); } -#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM) +#if defined (HAVE_RESIZETERM) if (Resize != NULL) { if ((SearchCompiled = Resize->SearchCompiled)) { REGCOMP @@ -1639,7 +1623,7 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t * extra) mutt_query_exit (); continue; } -#if defined (USE_SLANG_CURSES) || defined (HAVE_RESIZETERM) +#if defined (HAVE_RESIZETERM) else if (SigWinch) { mutt_resize_screen ();