comparison mcabber/mcabber/screen.c @ 1927:3e3e73bb43f5

Do not call compl_get_category_list() needlessly
author Mikael Berthe <mikael@lilotux.net>
date Thu, 11 Nov 2010 21:22:06 +0100
parents 0fa6df17bc5c
children a06d9eab14c5
comparison
equal deleted inserted replaced
1926:c1f9a4d47e05 1927:3e3e73bb43f5
3617 compl_categ = 0; 3617 compl_categ = 0;
3618 } 3618 }
3619 3619
3620 if (!completion_started) { 3620 if (!completion_started) {
3621 guint dynlist; 3621 guint dynlist;
3622 GSList *list = compl_get_category_list(compl_categ, &dynlist); 3622 GSList *list;
3623
3624 if (!compl_categ)
3625 return; // Nothing to complete
3626
3627 list = compl_get_category_list(compl_categ, &dynlist);
3623 if (list) { 3628 if (list) {
3624 guint n; 3629 guint n;
3625 char *prefix = g_strndup(row, ptr_inputline-row); 3630 char *prefix = g_strndup(row, ptr_inputline-row);
3626 // Init completion 3631 // Init completion
3627 n = new_completion(prefix, list, 3632 n = new_completion(prefix, list,