1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

Fixed omission in prev commit (complete mappings)

This commit is contained in:
Nick Patavalis
2018-03-03 16:45:56 +02:00
parent 7a2bd0b58b
commit 07e26cc849

View File

@ -255,7 +255,7 @@ _picocom_filter_mappings()
cura=( $cur1 ) cura=( $cur1 )
IFS=$' \t\n' IFS=$' \t\n'
# consider last mapping partial unless string ends in separator # consider last mapping partial unless string ends in separator
[[ $cur1 != *[$', \t'] ]] && unset cura[-1] [[ ${#cura[@]} -gt 0 && $cur1 != *[$', \t'] ]] && unset cura[-1]
for m in "${mappings[@]}"; do for m in "${mappings[@]}"; do
found= found=
for c in "${cura[@]}"; do for c in "${cura[@]}"; do