diff options
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c index 4fdbbbf6f..6092a1c97 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -7067,6 +7067,18 @@ do_highlight(line, forceit, init) need_highlight_changed = TRUE; } +#if defined(EXITFREE) || defined(PROTO) + void +free_highlight() +{ + int i; + + for (i = 0; i < highlight_ga.ga_len; ++i) + highlight_clear(i); + ga_clear(&highlight_ga); +} +#endif + /* * Reset the cterm colors to what they were before Vim was started, if * possible. Otherwise reset them to zero. |