diff options
author | Koni Marti <koni.marti@gmail.com> | 2023-06-20 22:25:47 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-06-20 22:51:43 +0200 |
commit | 709eafda087f1f4779265e54484906c92b23b3be (patch) | |
tree | 73831b589555887d2d925ecd15792e9613cf5fda /commands/move-tab.go | |
parent | 8e0cc222e2c978fc2faf5825af7f26f72475369d (diff) | |
download | aerc-709eafda087f1f4779265e54484906c92b23b3be.tar.gz |
commands: fix panic in template execution
Fix a panic in the template execution when the template evalutes to nil.
Check for length of returned arguments after the template code is
expanded.
To reproduce, run :{{exec "cat > /dev/null" .MessageId}}
Fixes: 42cd4157 ("commands: execute commands with templates")
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/move-tab.go')
0 files changed, 0 insertions, 0 deletions