Extra space at end of custom status line
Bug #1783604 reported by
Phil Richardson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Triaged
|
Low
|
Unassigned |
Bug Description
If any custom script executed / included for the custom status line returns no output, it is handled by appending it as if no escape code was provided.
This results in a simple append of a space for any items that do not output.
A simple check to ensure $str contains a value will avoid, before appending to output.
To post a comment you must log in.
Hmm, well there is an empty string check, but then we run sed on it, which might result in an empty string:
if [ -z "$output" ]; then RUN_DIR/ status. $BYOBU_ BACKEND/ custom" *
return
rm -f "$BYOBU_
fi
printf "$output" | $BYOBU_SED ':a;N;$!ba;s/\n//g'