X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=mod_query%2Fmain.c;h=d67c539d78c5f4370a903da0918b9f90204323fb;hb=0c733f17d41080cd8240eecc5251d08a1776cdc5;hp=aeef9ae942f90e873ba61508739673c744dee15f;hpb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d;p=ion3.git diff --git a/mod_query/main.c b/mod_query/main.c index aeef9ae..d67c539 100644 --- a/mod_query/main.c +++ b/mod_query/main.c @@ -1,12 +1,9 @@ /* * ion/mod_query/main.c * - * Copyright (c) Tuomo Valkonen 1999-2007. + * Copyright (c) Tuomo Valkonen 1999-2009. * - * Ion is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or - * (at your option) any later version. + * See the included file LICENSE for details. */ #include @@ -56,7 +53,8 @@ WBindmap *mod_query_wedln_bindmap=NULL; ModQueryConfig mod_query_config={ 250, TRUE, - FALSE + FALSE, + TRUE }; @@ -71,6 +69,8 @@ ModQueryConfig mod_query_config={ * in milliseconds (default: 250). \\ * \var{caseicompl} & (boolean) Turn some completions case-insensitive * (default: false). \\ + * \var{substrcompl} & (boolean) Complete on sub-strings in some cases + * (default: ftrue). \\ * \end{tabularx} */ EXTL_EXPORT @@ -80,6 +80,7 @@ void mod_query_set(ExtlTab tab) extl_table_gets_b(tab, "autoshowcompl", &c->autoshowcompl); extl_table_gets_b(tab, "caseicompl", &c->caseicompl); + extl_table_gets_b(tab, "substrcompl", &c->substrcompl); if(extl_table_gets_i(tab, "autoshowcompl_delay", &c->autoshowcompl_delay)){ @@ -99,8 +100,9 @@ ExtlTab mod_query_get() ExtlTab tab=extl_create_table(); extl_table_sets_b(tab, "autoshowcompl", c->autoshowcompl); - extl_table_sets_b(tab, "caseicompl", c->caseicompl); extl_table_sets_i(tab, "autoshowcompl_delay", c->autoshowcompl_delay); + extl_table_sets_b(tab, "caseicompl", c->caseicompl); + extl_table_sets_b(tab, "substrcompl", c->substrcompl); return tab; }