To: [email protected]
Subject: patch 5.4o.8
Fcc: outbox
From: Bram Moolenaar <[email protected]>
------------

Patch 5.4o.8
Problem:    When showing the wildmenu without a current match, highlighting
           the spaces was not appreciated by many users.
Solution:   Don't highlight anything without a current match.
Files:      src/screen.c


*** ../vim-5.4o/src/screen.c    Sun Jul 11 20:10:35 1999
--- src/screen.c        Thu Jul 15 22:37:19 1999
***************
*** 2315,2344 ****
           }
       }

       if (selstart != NULL && highlight)
       {
-           screen_puts(buf, row, 0, attr);
           *selend = NUL;
           screen_puts(selstart, row, (int)(selstart - buf), hl_attr(HLF_WM));
-       }
-       else
-       {
-           /* Highlight the spaces between the matches */
-           for (selstart = buf; *selstart; selstart = selend)
-           {
-               selend = skiptowhite(selstart);
-               i = *selend;
-               *selend = NUL;
-               screen_puts(selstart, row, (int)(selstart - buf), attr);
-               *selend = i;
-               selstart = selend;
-               selend = skipwhite(selstart);
-               i = *selend;
-               *selend = NUL;
-               screen_puts(selstart, row, (int)(selstart - buf),
-                                                            hl_attr(HLF_WM));
-               *selend = i;
-           }
       }

       screen_fill(row, row + 1, len, (int)Columns, fillchar, fillchar, attr);
--- 2329,2339 ----
           }
       }

+       screen_puts(buf, row, 0, attr);
       if (selstart != NULL && highlight)
       {
           *selend = NUL;
           screen_puts(selstart, row, (int)(selstart - buf), hl_attr(HLF_WM));
       }

       screen_fill(row, row + 1, len, (int)Columns, fillchar, fillchar, attr);

--
hundred-and-one symptoms of being an internet addict:
122. You ask if the Netaholics Anonymous t-shirt you ordered can be
    sent to you via e-mail.

--/-/---- Bram Moolenaar ---- [email protected] ---- [email protected] ---\-\--
 \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /