# HG changeset patch # User Christian Brabandt # Date 1520104506 -3600 # Node ID 33f514c94943d0a78e0d2c18560bbf72a71175ec # Parent 9986f28dc657f21c840e53aee7fa8385114d46cf patch 8.0.1561: crash with rust syntax highligting commit https://github.com/vim/vim/commit/069dafc1ded60d9ee0fee4bcecce78ac8a235d87 Author: Bram Moolenaar Date: Sat Mar 3 20:02:19 2018 +0100 patch 8.0.1561: crash with rust syntax highligting Problem: Crash with rust syntax highligting. (Edd Barrett) Solution: Avoid going past the end of an empty line. diff --git a/src/syntax.c b/src/syntax.c --- a/src/syntax.c +++ b/src/syntax.c @@ -2470,7 +2470,8 @@ syn_current_attr( /* nextgroup ends at end of line, unless "skipnl" or "skipempty" present */ if (current_next_list != NULL - && syn_getcurline()[current_col + 1] == NUL + && (line = syn_getcurline())[current_col] != NUL + && line[current_col + 1] == NUL && !(current_next_flags & (HL_SKIPNL | HL_SKIPEMPTY))) current_next_list = NULL; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -779,6 +779,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1561, +/**/ 1560, /**/ 1559,