]> Sergey Matveev's repositories - nnn.git/commitdiff
plugin autojump: on jump - read entire line (#1155)
authorAssaf Ben-Amitai <assaf758@gmail.com>
Sat, 4 Sep 2021 20:31:41 +0000 (23:31 +0300)
committerGitHub <noreply@github.com>
Sat, 4 Sep 2021 20:31:41 +0000 (02:01 +0530)
plugins/autojump

index 5d7bb93b4a9a3989657dcc717a23db3edda9bfe8..32a1f1f5925a4b288a90235300e7f2bf3504353b 100755 (executable)
@@ -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 : "