[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mutt-dev
Subject:    Re: pager.c: Handling of backspace sequences is broken.
From:       Edmund GRIMLEY EVANS <edmundo () rano ! org>
Date:       2000-08-30 19:49:42
[Download RAW message or body]

And this might be a correct optimisation ...


--- mutt.orig/pager.c	Thu Aug 17 21:17:27 2000
+++ mutt/pager.c	Wed Aug 30 20:46:24 2000
@@ -976,7 +976,7 @@
 {
   int space = -1; /* index of the last space or TAB */
   int col = option (OPTMARKERS) ? (*lineInfo)[n].continuation : 0;
-  int ch, vch, k, special = 0, t;
+  int ch, vch, k, last_special = -1, special = 0, t;
   wchar_t wc;
   mbstate_t mbstate;
 
@@ -1043,9 +1043,12 @@
     }
 
     if (pa &&
-	((flags & (M_SHOWCOLOR | M_SEARCH | M_PAGER_MARKER)) || special
-	 || pa->attr))
+	((flags & (M_SHOWCOLOR | M_SEARCH | M_PAGER_MARKER)) ||
+	 special || last_special || pa->attr))
+    {
       resolve_color (*lineInfo, n, vch, flags, special, pa);
+      last_special = special;
+    }
 
     if (IsWPrint (wc))
     {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic