Skip to content

Commit efd4b13

Browse files
A Dynamic Collection of Shell Scripts with Educational Purpose
1 parent 00b44da commit efd4b13

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

scripts/ble-simple

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -603,11 +603,7 @@ _cs_redraw() {
603603
else
604604
colored="$_CS_BUFFER"
605605
fi
606-
if [[ -z "$TERMUX_VERSION" ]]; then
607-
printf '\r\e[2K%s%s' "$_CS_PS1_LAST" "$colored" >&2
608-
else
609-
printf '\e[2K\r%s%s' "$_CS_PS1_LAST" "$colored" >&2
610-
fi
606+
printf '\r\e[2K%s%s' "$_CS_PS1_LAST" "$colored" >&2
611607
printf '\r\e[%dG' "$(( _CS_PS1_LEN + _CS_POS + 1 ))" >&2
612608
_gt_overlay
613609
fi
@@ -1115,6 +1111,7 @@ _cs_insert() {
11151111
}
11161112

11171113
_cs_backspace() {
1114+
[[ -n "$READLINE_LINE" ]] && printf '\nDEBUG READLINE_LINE=%s\n' "$READLINE_LINE" >&2
11181115
_cs_sync_from_readline
11191116
if (( _CS_POS == 0 )); then
11201117
_cs_redraw; return

0 commit comments

Comments
 (0)