Misc fixes for code formatting/style

This commit is contained in:
Ethan P 2019-09-25 13:20:36 -07:00
parent e15b9d439a
commit d776b7acbc
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA
2 changed files with 7 additions and 6 deletions

View File

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

View File

@ -10,9 +10,6 @@ BAT="bat"
source "${LIB}/opt.sh"
source "${LIB}/str.sh"
source "${LIB}/print.sh"
# -----------------------------------------------------------------------------
PROGRAM="$0"
# -----------------------------------------------------------------------------
# Formatters:
# -----------------------------------------------------------------------------