X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=mod_query%2Fmain.c;h=aeef9ae942f90e873ba61508739673c744dee15f;hp=9eb7323f6d7b6f17f89a6b0b6587d1945f664b4f;hb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d;hpb=8366314611bf30a0f31d25bf5f5023186fa87692 diff --git a/mod_query/main.c b/mod_query/main.c index 9eb7323..aeef9ae 100644 --- a/mod_query/main.c +++ b/mod_query/main.c @@ -1,7 +1,7 @@ /* * ion/mod_query/main.c * - * Copyright (c) Tuomo Valkonen 1999-2006. + * Copyright (c) Tuomo Valkonen 1999-2007. * * 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 @@ -55,7 +55,8 @@ WBindmap *mod_query_wedln_bindmap=NULL; ModQueryConfig mod_query_config={ 250, - TRUE + TRUE, + FALSE }; @@ -68,6 +69,8 @@ ModQueryConfig mod_query_config={ * (default: true). \\ * \var{autoshowcompl_delay} & (integer) auto-show-completions delay * in milliseconds (default: 250). \\ + * \var{caseicompl} & (boolean) Turn some completions case-insensitive + * (default: false). \\ * \end{tabularx} */ EXTL_EXPORT @@ -76,6 +79,7 @@ void mod_query_set(ExtlTab tab) ModQueryConfig *c=&mod_query_config; extl_table_gets_b(tab, "autoshowcompl", &c->autoshowcompl); + extl_table_gets_b(tab, "caseicompl", &c->caseicompl); if(extl_table_gets_i(tab, "autoshowcompl_delay", &c->autoshowcompl_delay)){ @@ -87,6 +91,7 @@ void mod_query_set(ExtlTab tab) * Get module configuration. For more information see * \fnref{mod_query.set}. */ +EXTL_SAFE EXTL_EXPORT ExtlTab mod_query_get() { @@ -94,6 +99,7 @@ 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); return tab;