]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-config.c
CLI/setup: special case single item lists
[notmuch] / notmuch-config.c
index 11d8d68b5b5ead71d24d9f37202eaf958e8b1ccd..e9456d794456c080e81abbd6a00efcb6b123c3c4 100644 (file)
@@ -383,7 +383,10 @@ _config_set_list (notmuch_conffile_t *config,
                  const char *list[],
                  size_t length)
 {
-    g_key_file_set_string_list (config->key_file, group, key, list, length);
+    if (length > 1)
+       g_key_file_set_string_list (config->key_file, group, key, list, length);
+    else
+       g_key_file_set_string (config->key_file, group, key, list[0]);
 }
 
 void