changeset 12511:b85c981b3a8e v8.0.1134

patch 8.0.1134: superfluous call to syn_get_final_id() commit https://github.com/vim/vim/commit/76301956f0c079d893cfd927b11456328bed4f9b Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 22 13:53:37 2017 +0200 patch 8.0.1134: superfluous call to syn_get_final_id() Problem: Superfluous call to syn_get_final_id(). Solution: Remove it. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Fri, 22 Sep 2017 14:00:05 +0200
parents 7a887dccd13a
children 018c1e1dc521
files src/syntax.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -9556,7 +9556,7 @@ syn_name2attr(char_u *name)
     int id = syn_name2id(name);
 
     if (id != 0)
-	return syn_id2attr(syn_get_final_id(id));
+	return syn_id2attr(id);
     return 0;
 }
 
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1134,
+/**/
     1133,
 /**/
     1132,