find_help_node() in kernel/help.c

MA Dunzi tadalunch@s5.xrea.com
Tue Oct 1 21:47:00 GMT 2002


If i click "Flight" repeatedly in the help dialog, 
a description for "Advanced Flight", "Space Flight", "Flight" is shown by turns.

Is find_help_node() designed to do it?
If not so, i would like to commit this patch.

--- help.c.orig	Sat Sep 28 17:44:14 2002
+++ help.c	Sat Sep 28 17:44:47 2002
@@ -240,8 +240,6 @@
     for (tmp = node->next; tmp != node; tmp = tmp->next) {
     	if (strcmp(tmp->key, str) == 0)
     	  return tmp;
-    	if (strstr(tmp->key, str) != NULL)
-    	  return tmp;
     }
     return NULL;
 }

-- 
MA Dunzi <tadalunch@s5.xrea.com> http://tadalunch.s5.xrea.com/xconq/index.html



More information about the Xconq7 mailing list