make Misc.apropos return plugin name even if command is in only one plugin.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 8daebd1240)
This commit is contained in:
Daniel Folkinshteyn 2010-04-27 12:46:22 -04:00 committed by James Vega
parent 976567c1ac
commit 9e1ba9910a

View File

@ -169,9 +169,6 @@ class Misc(callbacks.Plugin):
if s in command: if s in command:
commands.setdefault(command, []).append(cb.name()) commands.setdefault(command, []).append(cb.name())
for (key, names) in commands.iteritems(): for (key, names) in commands.iteritems():
if len(names) == 1:
L.append(key)
else:
for name in names: for name in names:
L.append('%s %s' % (name, key)) L.append('%s %s' % (name, key))
if L: if L: