plugin autojump: on jump - read entire line (#1155)

This commit is contained in:
Assaf Ben-Amitai 2021-09-04 23:31:41 +03:00 committed by GitHub
parent 51829c8027
commit 7de52ff890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,8 +21,8 @@ fi
if type jump >/dev/null 2>&1; then if type jump >/dev/null 2>&1; then
printf "jump to : " printf "jump to : "
read -r dir IFS= read -r line
odir="$(jump cd "$dir")" odir="$(jump cd "${line}")"
printf "%s" "0c$odir" > "$NNN_PIPE" printf "%s" "0c$odir" > "$NNN_PIPE"
elif type autojump >/dev/null 2>&1; then elif type autojump >/dev/null 2>&1; then
printf "jump to : " printf "jump to : "