This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

find_help_node() in kernel/help.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]