Patch 8.0.1561
Problem:    Crash with rust syntax highligting. (Edd Barrett)
Solution:   Avoid going past the end of an empty line.
Files:      src/syntax.c


*** ../vim-8.0.1560/src/syntax.c        2018-02-27 14:38:58.653004777 +0100
--- src/syntax.c        2018-03-03 19:56:58.438755007 +0100
***************
*** 2470,2476 ****
  
      /* nextgroup ends at end of line, unless "skipnl" or "skipempty" present 
*/
      if (current_next_list != NULL
!           && syn_getcurline()[current_col + 1] == NUL
            && !(current_next_flags & (HL_SKIPNL | HL_SKIPEMPTY)))
        current_next_list = NULL;
  
--- 2470,2477 ----
  
      /* nextgroup ends at end of line, unless "skipnl" or "skipempty" present 
*/
      if (current_next_list != NULL
!           && (line = syn_getcurline())[current_col] != NUL
!           && line[current_col + 1] == NUL
            && !(current_next_flags & (HL_SKIPNL | HL_SKIPEMPTY)))
        current_next_list = NULL;
  
*** ../vim-8.0.1560/src/version.c       2018-03-03 19:51:52.868688122 +0100
--- src/version.c       2018-03-03 19:59:37.301749498 +0100
***************
*** 780,781 ****
--- 780,783 ----
  {   /* Add new patch number below this line */
+ /**/
+     1561,
  /**/

-- 
A M00se once bit my sister ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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