mirror of
https://github.com/prurigro/vnotes.git
synced 2024-12-22 02:10:24 -05:00
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:
parent
eb0f76f6b6
commit
9eb26d3656
1 changed files with 2 additions and 2 deletions
4
vnotes
4
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
|
||||
|
|
Loading…
Reference in a new issue