diff options
author | 2012-01-16 23:54:57 +0530 | |
---|---|---|
committer | 2012-01-16 23:54:57 +0530 | |
commit | 7e124cf95e2a85897bd78b6362ff9b9b1b87c4b8 (patch) | |
tree | 38020068c1e59779f7f778c979f0ee881253e62f /complete.cpp | |
parent | 6f330f961b0186aa4d5f2f3f45b19b84ec7b3516 (diff) |
Added constructor to completion_t for guarranted initialzation of flags attribute.
Diffstat (limited to 'complete.cpp')
-rw-r--r-- | complete.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/complete.cpp b/complete.cpp index 0784da78..63bf6d64 100644 --- a/complete.cpp +++ b/complete.cpp @@ -1173,7 +1173,8 @@ static void complete_cmd( const wchar_t *cmd, //function_get_names( &possible_comp, cmd[0] == L'_' ); wcstring_list_t names = function_get_names(cmd[0] == L'_' ); for (size_t i=0; i < names.size(); i++) { - completion_t data_to_push = { names.at(i) }; + completion_t data_to_push; + data_to_push.completion = names.at(i); possible_comp.push_back( data_to_push ); } |