1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-22 01:40:48 +03:00

Fix recursive search (#323)

This commit is contained in:
Igor Chubin 2022-04-18 16:32:43 +00:00
parent e66382cb53
commit 717f89e0c2

View File

@ -192,7 +192,10 @@ class LearnXYAdapter(object):
return "\n".join(self.get_list()) + "\n"
if name == ":learn":
return "\n".join(self._whole_cheatsheet) + "\n"
if self._whole_cheatsheet:
return "\n".join(self._whole_cheatsheet) + "\n"
else:
return ""
if partial:
possible_names = []