Skip to content

Commit

Permalink
Old zsh compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Jul 25, 2018
1 parent 91c5e1a commit c8e6e2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zaw.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ function zaw-name-from-func() {

function zaw-action() {
local idx name value
local -a styles=(default alt)
local -a styles
styles=(default alt)
name="$1"
idx="$2"
if zstyle -s ":zaw:${name}" "${styles[$idx]}" value && [[ ${actions[(ie)$value]} -le ${#actions} ]]; then
Expand Down

0 comments on commit c8e6e2a

Please sign in to comment.