about summary refs log tree commit diff
path: root/Completion/Linux/Command/_acpi
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2015-09-06 22:25:21 +0200
committerMikael Magnusson <mikachu@gmail.com>2015-09-27 02:28:41 +0200
commit72f7f904e8734c2ee73b77e35e60ecb86148bc60 (patch)
tree3ffa1b53e5fe68ca59dedfe356e69a7d9ded4eae /Completion/Linux/Command/_acpi
parent8ab150a867ff9ab87d2efdf5cfce919614f2ddbb (diff)
downloadzsh-72f7f904e8734c2ee73b77e35e60ecb86148bc60.tar.gz
zsh-72f7f904e8734c2ee73b77e35e60ecb86148bc60.tar.xz
zsh-72f7f904e8734c2ee73b77e35e60ecb86148bc60.zip
Add match-bracket widget that takes a position and/or parameter to store result, and does no weird vi stuff mikachu/redrawhook
I use this in my zle-line-pre-redraw hook,

  local -a hackcol=(red cyan)
  local mpos cpos off
  for off in 0 1; do
    (( cpos = CURSOR - off ))
    if (( cpos >= 0 )) && zle .match-bracket $cpos mpos; then
      region_highlight+=("$((cpos)) $((cpos+1)) bold,bg=${hackcol[2]},fg=black"
                         "$((mpos)) $((mpos+1)) bold,bg=${hackcol[1]},fg=black")
      break
    fi
  done
Diffstat (limited to 'Completion/Linux/Command/_acpi')
0 files changed, 0 insertions, 0 deletions