diff options
Diffstat (limited to 'src/common/completion.c')
-rw-r--r-- | src/common/completion.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/common/completion.c b/src/common/completion.c index f798643b5..e7f1dc624 100644 --- a/src/common/completion.c +++ b/src/common/completion.c @@ -444,11 +444,14 @@ completion_build_list (t_completion *completion, void *channel) option->default_string); break; case OPTION_TYPE_STRING: + snprintf (option_string, sizeof (option_string) - 1, + "\"%s\"", + (option_value) ? + *((char **)(option_value)) : + option->default_string); weelist_add (&completion->completion_list, &completion->last_completion, - (option_value) ? - *((char **)(option_value)) : - option->default_string); + option_string); break; } } |