Move tput initialization so the list of notes doesn't get cleared before the text entry in at least urxvt and alacritty

This commit is contained in:
Kevin MacMartin 2024-03-21 18:01:53 -04:00
parent eb0f76f6b6
commit 9eb26d3656
1 changed files with 2 additions and 2 deletions

4
vnotes
View File

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