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
1 changed files with 2 additions and 2 deletions

View File

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