Patch 8.1.0280
Problem:    'incsearch' highlighting does not work for ":g!/".
Solution:   Skip the exclamation mark. (Hirohito Higashi)
Files:      src/ex_getln.c, src/testdir/test_search.vim


*** ../vim-8.1.0279/src/ex_getln.c      2018-08-12 22:02:55.494056691 +0200
--- src/ex_getln.c      2018-08-13 22:53:06.873250045 +0200
***************
*** 298,303 ****
--- 298,310 ----
                            || STRNCMP(cmd, "global", p - cmd) == 0
                            || STRNCMP(cmd, "vglobal", p - cmd) == 0))
                {
+                   // Check for "global!/".
+                   if (*cmd == 'g' && *p == '!')
+                   {
+                       p++;
+                       if (*skipwhite(p) == NUL)
+                           return FALSE;
+                   }
                    p = skipwhite(p);
                    delim = *p++;
                    end = skip_regexp(p, delim, p_magic, NULL);
*** ../vim-8.1.0279/src/testdir/test_search.vim 2018-08-12 22:02:55.494056691 
+0200
--- src/testdir/test_search.vim 2018-08-13 22:50:49.374202563 +0200
***************
*** 399,404 ****
--- 399,412 ----
    undo
    call feedkeys(":global/the\<c-l>/d\<cr>", 'tx')
    call assert_equal('  3 the theother', getline(2))
+   undo
+   call feedkeys(":g!/the\<c-l>/d\<cr>", 'tx')
+   call assert_equal(1, line('$'))
+   call assert_equal('  2 the~e', getline(1))
+   undo
+   call feedkeys(":global!/the\<c-l>/d\<cr>", 'tx')
+   call assert_equal(1, line('$'))
+   call assert_equal('  2 the~e', getline(1))
  
    call Incsearch_cleanup()
  endfunc
*** ../vim-8.1.0279/src/version.c       2018-08-12 22:02:55.494056691 +0200
--- src/version.c       2018-08-13 22:51:49.437786199 +0200
***************
*** 796,797 ****
--- 796,799 ----
  {   /* Add new patch number below this line */
+ /**/
+     280,
  /**/

-- 
A parent can be arrested if his child cannot hold back a burp during a church
service.
                [real standing law in Nebraska, United States of America]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui