mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-03-03 07:51:13 +01:00
Misc fixes for code formatting/style
This commit is contained in:
parent
e15b9d439a
commit
d776b7acbc
@ -12,10 +12,12 @@ source "${LIB}/pager.sh"
|
|||||||
source "${LIB}/opt.sh"
|
source "${LIB}/opt.sh"
|
||||||
source "${LIB}/version.sh"
|
source "${LIB}/version.sh"
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
# Options:
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
SEP="$(printc "%{DIM}%$(tput cols)s%{CLEAR}" | sed "s/ /─/g")"
|
SEP="$(printc "%{DIM}%$(tput cols)s%{CLEAR}" | sed "s/ /─/g")"
|
||||||
RG_ARGS=()
|
RG_ARGS=()
|
||||||
BAT_ARGS=()
|
BAT_ARGS=()
|
||||||
PATTERN=
|
PATTERN=""
|
||||||
FILES=()
|
FILES=()
|
||||||
OPT_CONTEXT_BEFORE=2
|
OPT_CONTEXT_BEFORE=2
|
||||||
OPT_CONTEXT_AFTER=2
|
OPT_CONTEXT_AFTER=2
|
||||||
@ -115,7 +117,9 @@ if [[ "$OPT_CONTEXT_BEFORE" -eq 0 && "$OPT_CONTEXT_AFTER" -eq 0 ]]; then
|
|||||||
OPT_HIGHLIGHT=false
|
OPT_HIGHLIGHT=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Declare the main function.
|
# -----------------------------------------------------------------------------
|
||||||
|
# Main:
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
main() {
|
main() {
|
||||||
FOUND_FILES=()
|
FOUND_FILES=()
|
||||||
FOUND=0
|
FOUND=0
|
||||||
@ -169,6 +173,6 @@ main() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Execute main function with pager.
|
|
||||||
pager_exec main
|
pager_exec main
|
||||||
|
exit $?
|
||||||
|
|
||||||
|
@ -10,9 +10,6 @@ BAT="bat"
|
|||||||
source "${LIB}/opt.sh"
|
source "${LIB}/opt.sh"
|
||||||
source "${LIB}/str.sh"
|
source "${LIB}/str.sh"
|
||||||
source "${LIB}/print.sh"
|
source "${LIB}/print.sh"
|
||||||
# -----------------------------------------------------------------------------
|
|
||||||
PROGRAM="$0"
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Formatters:
|
# Formatters:
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user