To: vim_dev@googlegroups.com Subject: Patch 8.0.1561 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///