hsmw: Indent whole file via Emacs

This commit is contained in:
Sebastian Gniazdowski 2017-06-13 06:57:54 +02:00
parent 14d0704d91
commit 3624e8e8c1

View file

@ -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