mirror of
https://github.com/prurigro/vnotes.git
synced 2024-11-22 01:04:10 -05:00
Use more consistent formatting in arithmetic expressions to make it more clear where they start and end
This commit is contained in:
parent
8673d1509d
commit
f06d4a5cb0
1 changed files with 3 additions and 3 deletions
6
vnotes
6
vnotes
|
@ -168,7 +168,7 @@ function search_notes {
|
|||
maxcolumns=0
|
||||
|
||||
while (( 1 )); do
|
||||
(( (( max_docwidth + 8) * maxcolumns) > screen_width )) && {
|
||||
(( ((max_docwidth + 8) * maxcolumns) > screen_width )) && {
|
||||
(( maxcolumns-- ))
|
||||
break
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ function search_notes {
|
|||
cnt=1
|
||||
|
||||
for (( x=0; x<${#documents[*]}; x++ )); do
|
||||
count_display=$(printf "%${digits}s" "$((x+1))")
|
||||
count_display=$(printf "%${digits}s" "$(( x + 1 ))")
|
||||
count_display="${count_display//\ /0}"
|
||||
(( x )) || one_display="$count_display"
|
||||
printf "${c_b}[%${digits}s]$c_c$c_u%$(( max_docwidth + 1 ))s$c_c" "$count_display" "${documents[$x]}"
|
||||
|
@ -247,7 +247,7 @@ function search_notes {
|
|||
case "$keypress" in
|
||||
'177'|'010'|'033 133 063 176')
|
||||
# Backspace
|
||||
[[ -n "$value" ]] && value="${value:0:$((${#value}-1))}"
|
||||
[[ -n "$value" ]] && value="${value:0:$(( ${#value} - 1 ))}"
|
||||
;;
|
||||
|
||||
"$alpha_q"|"$alpha_Q") value='-1'; break ;;
|
||||
|
|
Loading…
Reference in a new issue