Mercurial > vim
comparison src/evalfunc.c @ 9774:5385e72e1ac2 v7.4.2162
commit https://github.com/vim/vim/commit/7522f6982197f83a5c0f6e9af07fb713934f824a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 6 14:12:50 2016 +0200
patch 7.4.2162
Problem: Result of getcompletion('', 'sign') depends on previous
completion.
Solution: Call set_context_in_sign_cmd(). (Dominique Pelle)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 06 Aug 2016 14:15:04 +0200 |
parents | ba98d7ce0d74 |
children | 34cc6a101340 |
comparison
equal
deleted
inserted
replaced
9773:908a212d6d44 | 9774:5385e72e1ac2 |
---|---|
4245 { | 4245 { |
4246 set_context_in_cscope_cmd(&xpc, xpc.xp_pattern, CMD_cscope); | 4246 set_context_in_cscope_cmd(&xpc, xpc.xp_pattern, CMD_cscope); |
4247 xpc.xp_pattern_len = (int)STRLEN(xpc.xp_pattern); | 4247 xpc.xp_pattern_len = (int)STRLEN(xpc.xp_pattern); |
4248 } | 4248 } |
4249 #endif | 4249 #endif |
4250 #ifdef FEAT_SIGNS | |
4251 if (xpc.xp_context == EXPAND_SIGN) | |
4252 { | |
4253 set_context_in_sign_cmd(&xpc, xpc.xp_pattern); | |
4254 xpc.xp_pattern_len = (int)STRLEN(xpc.xp_pattern); | |
4255 } | |
4256 #endif | |
4250 | 4257 |
4251 pat = addstar(xpc.xp_pattern, xpc.xp_pattern_len, xpc.xp_context); | 4258 pat = addstar(xpc.xp_pattern, xpc.xp_pattern_len, xpc.xp_context); |
4252 if ((rettv_list_alloc(rettv) != FAIL) && (pat != NULL)) | 4259 if ((rettv_list_alloc(rettv) != FAIL) && (pat != NULL)) |
4253 { | 4260 { |
4254 int i; | 4261 int i; |