X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=pager.c;h=42abff6faa8d69151dac8f35a98f8b6cae3e0496;hb=84bc6d1930165b21919541b3b24294a9d99c3541;hp=dd1a621ad5a2578b354c5428971cae75c15eacb0;hpb=a30218f8b3d68023d354d75b7c4674ae0c528f28;p=apps%2Fmadmutt.git 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 ();