mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-12 17:20:40 +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}/version.sh"
|
||||
# -----------------------------------------------------------------------------
|
||||
# Options:
|
||||
# -----------------------------------------------------------------------------
|
||||
SEP="$(printc "%{DIM}%$(tput cols)s%{CLEAR}" | sed "s/ /─/g")"
|
||||
RG_ARGS=()
|
||||
BAT_ARGS=()
|
||||
PATTERN=
|
||||
PATTERN=""
|
||||
FILES=()
|
||||
OPT_CONTEXT_BEFORE=2
|
||||
OPT_CONTEXT_AFTER=2
|
||||
@ -115,7 +117,9 @@ if [[ "$OPT_CONTEXT_BEFORE" -eq 0 && "$OPT_CONTEXT_AFTER" -eq 0 ]]; then
|
||||
OPT_HIGHLIGHT=false
|
||||
fi
|
||||
|
||||
# Declare the main function.
|
||||
# -----------------------------------------------------------------------------
|
||||
# Main:
|
||||
# -----------------------------------------------------------------------------
|
||||
main() {
|
||||
FOUND_FILES=()
|
||||
FOUND=0
|
||||
@ -169,6 +173,6 @@ main() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Execute main function with pager.
|
||||
pager_exec main
|
||||
exit $?
|
||||
|
||||
|
@ -10,9 +10,6 @@ BAT="bat"
|
||||
source "${LIB}/opt.sh"
|
||||
source "${LIB}/str.sh"
|
||||
source "${LIB}/print.sh"
|
||||
# -----------------------------------------------------------------------------
|
||||
PROGRAM="$0"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Formatters:
|
||||
# -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user