Reset cursor position in agent-cmd.sh

This commit is contained in:
2026-05-21 11:44:11 +01:00
parent df23247b07
commit daf76780eb

View File

@@ -30,6 +30,10 @@ agent=$(printf '%s\n' "${agents[@]}" | fzf \
--margin="0,$hmargin" \
--padding=1)
# Reset cursor so the agent doesn't render starting where fzf left it.
tput cup 0 0
tput ed
if [ -n "$agent" ]; then
"$agent" || true
fi