Show one line in previewing text message to edit

This commit is contained in:
Julian P Samaroo 2020-08-29 10:45:44 -05:00 committed by Miles Alan
parent 93de0d4d84
commit bbdf195090

View file

@ -75,7 +75,7 @@ sendtextmenu() {
while true
do
CONFIRM="$(
printf %b "Edit Message ($TEXT)\nSend to → $NUMBER\nCancel" |
printf %b "Edit Message ($(echo "$TEXT" | head -n1))\nSend to → $NUMBER\nCancel" |
menu dmenu -c -idx 1 -p "Confirm" -fn "Terminus-20" -l 10
)"
echo "$CONFIRM" | grep -E "^Send" && sendmsg "$NUMBER" "$TEXT" && exit 0