Created
February 25, 2011 03:20
-
-
Save ujihisa/843323 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git src/syntax.c src/syntax.c | |
index 369311f..e936b6f 100644 | |
--- src/syntax.c | |
+++ src/syntax.c | |
@@ -6941,6 +6941,8 @@ do_highlight(line, forceit, init) | |
if (doclear) | |
{ | |
+ int sg_link = 0; | |
+ | |
/* | |
* ":highlight clear [group]" command. | |
*/ | |
@@ -7001,7 +7003,14 @@ do_highlight(line, forceit, init) | |
*/ | |
for (idx = 0; idx < highlight_ga.ga_len; ++idx) | |
highlight_clear(idx); | |
+ | |
+ id = syn_namen2id("Conceal", 7); | |
+ if (HL_TABLE()[id - 1].sg_link) { | |
+ sg_link = HL_TABLE()[id - 1].sg_link; | |
+ } | |
init_highlight(TRUE, TRUE); | |
+ if (sg_link) | |
+ HL_TABLE()[id - 1].sg_link = sg_link; | |
#ifdef FEAT_GUI | |
if (gui.in_use) | |
highlight_gui_started(); | |
diff --git src/testdir/Makefile src/testdir/Makefile | |
index 833a82a..e0d37d9 100644 | |
--- src/testdir/Makefile | |
+++ src/testdir/Makefile | |
@@ -25,7 +25,7 @@ SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \ | |
test59.out test60.out test61.out test62.out test63.out \ | |
test64.out test65.out test66.out test67.out test68.out \ | |
test69.out test70.out test71.out test72.out test73.out \ | |
- test74.out test75.out test76.out | |
+ test74.out test75.out test76.out test77.out | |
SCRIPTS_GUI = test16.out | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment