spell: execute from history using the name, not only the id.

This commit is contained in:
fiatjaf
2025-12-23 21:32:54 -03:00
parent e9c4deaf6d
commit 6d87887855

View File

@@ -120,7 +120,7 @@ var spell = &cli.Command{
} else {
// search our history
for _, entry := range history {
if entry.Identifier == identifier {
if entry.Identifier == identifier || entry.Name == identifier {
pointer = entry.Pointer
break
}