diff options
author | axel <axel@liljencrantz.se> | 2006-01-13 11:00:12 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-01-13 11:00:12 +1000 |
commit | 2b7781d3cb64e0696f70f9df225105d54407857d (patch) | |
tree | 940f963643aba4e85a50efa40a769b051da2430d /complete.c | |
parent | f0b2d7532a7020431ef447380154e5631e05d9da (diff) |
Correctly handle locale changes through scope expiry, as well as locale changes in completion code
darcs-hash:20060113010012-ac50b-81cde216bd6b92f7b1374e5f6452695618185f95.gz
Diffstat (limited to 'complete.c')
-rw-r--r-- | complete.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1371,11 +1371,17 @@ static void complete_from_args( const wchar_t *str, const wchar_t *desc, array_list_t *comp_out ) { + int was_interactive = is_interactive; + is_interactive=0; + array_list_t possible_comp; al_init( &possible_comp ); eval_args( args, &possible_comp ); + is_interactive=was_interactive; + + debug( 3, L"desc is '%ls', %d long\n", desc, wcslen(desc) ); copy_strings_with_prefix( comp_out, str, desc, 0, &possible_comp ); |