diff --git a/vnotes b/vnotes index c894330..0ca1b96 100755 --- a/vnotes +++ b/vnotes @@ -207,8 +207,9 @@ function search_notes { (( digits++ )) done - # Draw the list + # Initialize tput and draw the list printf '\n' + tput init for (( x=0; x<${#documents[*]}; x++ )); do count_display=$(printf "%${digits}s" "$(( x + 1 ))") @@ -229,7 +230,6 @@ function search_notes { printf '\n' # Initialize the interactive entry line - tput init prompt tput sc tput rc