0853b74fef0fa3a05af7487ff9b15a7f714bb037

Author
Ross Lafferty <ross.lafferty@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

jump: fix printf path output (#7105)

Using the `jump` plugin, using the `marks` command will yield this output:
```
$ marks
desktop marks:printf:5: bad option: ->
dotfiles        marks:printf:5: bad option: ->
home    marks:printf:5: bad option: ->
```

the `marks` function uses `printf` with `->` and I believe `-` is used by `printf` for left-justification.  changing this to `-- "->"` seems to render the appropriate output.

```
desktop -> /Users/uname/Desktop
dotfiles        -> /Users/uname/.dotfiles
home    -> /Users/uname
```

Diff

 1diff --git a/plugins/jump/jump.plugin.zsh b/plugins/jump/jump.plugin.zsh
 2index 86d9553a26647299b5fa9255cea9c92635baa91c..168dfaba2ae41928beaead091b04502efd738174 100644
 3--- a/plugins/jump/jump.plugin.zsh
 4+++ b/plugins/jump/jump.plugin.zsh
 5@@ -32,7 +32,7 @@ marks() {
 6 		local markname="$fg[cyan]${link:t}$reset_color"
 7 		local markpath="$fg[blue]$(readlink $link)$reset_color"
 8 		printf "%s\t" $markname
 9-		printf "-> %s \t\n" $markpath
10+		printf -- "-> %s \t\n" $markpath
11 	done
12 }
13