Mercurial > vim
diff src/syntax.c @ 8524:2f57bbe870ea v7.4.1552
commit https://github.com/vim/vim/commit/7f8989dd8a627af2185df381195351a913f3777f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 12 22:11:39 2016 +0100
patch 7.4.1552
Problem: ":colorscheme" does not use 'packpath'.
Solution: Also use in "start" and "opt" directories in 'packpath'.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 12 Mar 2016 22:15:05 +0100 |
parents | 260d01c1cd17 |
children | 24b43dd167eb |
line wrap: on
line diff
--- a/src/syntax.c +++ b/src/syntax.c @@ -4813,7 +4813,7 @@ syn_cmd_include(exarg_T *eap, int syncin prev_toplvl_grp = curwin->w_s->b_syn_topgrp; curwin->w_s->b_syn_topgrp = sgl_id; if (source ? do_source(eap->arg, FALSE, DOSO_NONE) == FAIL - : source_runtime(eap->arg, TRUE) == FAIL) + : source_runtime(eap->arg, DIP_ALL) == FAIL) EMSG2(_(e_notopen), eap->arg); curwin->w_s->b_syn_topgrp = prev_toplvl_grp; current_syn_inc_tag = prev_syn_inc_tag; @@ -7075,7 +7075,7 @@ init_highlight( else { ++recursive; - (void)source_runtime((char_u *)"syntax/syncolor.vim", TRUE); + (void)source_runtime((char_u *)"syntax/syncolor.vim", DIP_ALL); --recursive; } } @@ -7104,7 +7104,7 @@ load_colors(char_u *name) if (buf != NULL) { sprintf((char *)buf, "colors/%s.vim", name); - retval = source_runtime(buf, FALSE); + retval = source_runtime(buf, DIP_START + DIP_OPT); vim_free(buf); #ifdef FEAT_AUTOCMD apply_autocmds(EVENT_COLORSCHEME, name, curbuf->b_fname, FALSE, curbuf);