diff options
author | 2006-02-15 12:46:44 +1000 | |
---|---|---|
committer | 2006-02-15 12:46:44 +1000 | |
commit | e58110da2cf144475be44577a20dae02276e367a (patch) | |
tree | c9c67de86e8d7d5cb50914156f8d2354bd7b048d /parse_util.c | |
parent | 0d1683edc8180c4f1e09cd53344a749bc2ebf363 (diff) |
Reset list of loaded completion files when running complete_destroy. Otherwise completions will not get propely loaded on language changes.
darcs-hash:20060215024644-ac50b-d259cdac14dccb55309a4702683f1b881636e9ac.gz
Diffstat (limited to 'parse_util.c')
-rw-r--r-- | parse_util.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/parse_util.c b/parse_util.c index ce5820b8..754e49f5 100644 --- a/parse_util.c +++ b/parse_util.c @@ -460,10 +460,23 @@ static void parse_util_destroy() } } +void parse_util_load_reset( const wchar_t *path_var ) +{ + if( all_loaded ) + { + void *key, *data; + hash_remove( all_loaded, path_var, (const void **)&key, (const void **)&data ); + if( key ) + clear_loaded_entry( key, data ); + } + +} + + int parse_util_load( const wchar_t *cmd, - const wchar_t *path_var, - void (*on_load)(const wchar_t *cmd), - int reload ) + const wchar_t *path_var, + void (*on_load)(const wchar_t *cmd), + int reload ) { static array_list_t *path_list=0; static string_buffer_t *path=0; |