Skip to content

Commit

Permalink
More concise way to split newlines into array
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jul 2, 2016
1 parent 764e037 commit 4010f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh-better-npm-completion.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ _zbnc_npm_run_completion() {
[ "$package_json" = "" ] && return

# Parse scripts in package.json
local options=("${(@f)$(_zbnc_parse_package_json_for_script_suggestions $package_json)}")
local options=(${(f)"$(_zbnc_parse_package_json_for_script_suggestions $package_json)"})

# Return if we can't parse it
[ "$#options" = 0 ] && return
Expand Down

0 comments on commit 4010f3e

Please sign in to comment.