mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-24 20:33:04 +00:00
hsmw: Indent whole file via Emacs
This commit is contained in:
parent
14d0704d91
commit
3624e8e8c1
1 changed files with 135 additions and 135 deletions
|
@ -49,7 +49,7 @@ trap '(( __hsmw_hcw_call_count -- )); return 0;' INT
|
|||
|
||||
if (( ${+functions[_hsmw_main]} == 0 )); then
|
||||
|
||||
_hsmw_main() {
|
||||
_hsmw_main() {
|
||||
# First call or restart?
|
||||
if [[ "$__hsmw_hcw_call_count" -le 1 || "$__hsmw_hcw_restart" = "1" ]]; then
|
||||
if [[ "$__hsmw_hcw_call_count" -le 1 ]]; then
|
||||
|
@ -191,12 +191,12 @@ _hsmw_main() {
|
|||
__hsmw_prev_offset=offset
|
||||
|
||||
region_highlight+=( "$(( offset + ${#txt_before} )) $(( offset + ${#txt_before} + ${#entry} + 1 )) $__hsmw_active" )
|
||||
}
|
||||
}
|
||||
|
||||
_hsmw_shappend() {
|
||||
_hsmw_shappend() {
|
||||
__hsmw_region_highlight_data+=( "$(( offset + $1 - 1 )) $(( offset + $2 )) ${__hsmw_hl_color}" )
|
||||
}
|
||||
functions -M hsmw_append 2 2 _hsmw_shappend
|
||||
}
|
||||
functions -M hsmw_append 2 2 _hsmw_shappend
|
||||
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue