mirror of
https://github.com/fiatjaf/nak.git
synced 2026-01-24 19:38:52 +00:00
spell: execute from history using the name, not only the id.
This commit is contained in:
2
spell.go
2
spell.go
@@ -120,7 +120,7 @@ var spell = &cli.Command{
|
|||||||
} else {
|
} else {
|
||||||
// search our history
|
// search our history
|
||||||
for _, entry := range history {
|
for _, entry := range history {
|
||||||
if entry.Identifier == identifier {
|
if entry.Identifier == identifier || entry.Name == identifier {
|
||||||
pointer = entry.Pointer
|
pointer = entry.Pointer
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user