mirror of
https://github.com/0xacx/chatGPT-shell-cli.git
synced 2024-11-24 11:25:31 +00:00
Safer quoting on $COLUMNS
This commit is contained in:
parent
3b0cd946ce
commit
cbc31b57cf
@ -375,7 +375,7 @@ while $running; do
|
||||
echo "${response_data}" | glow -
|
||||
#echo -e "${formatted_text}"
|
||||
else
|
||||
echo -e "${CHATGPT_CYAN_LABEL}${response_data}" | fold -s -w $COLUMNS
|
||||
echo -e "${CHATGPT_CYAN_LABEL}${response_data}" | fold -s -w "$COLUMNS"
|
||||
fi
|
||||
add_assistant_response_to_chat_message "$(escape "$response_data")"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user