Invalidate display after fzf history search, forcing a refresh#1632
Invalidate display after fzf history search, forcing a refresh#1632rolandwalker wants to merge 1 commit intomainfrom
Conversation
|
Findings
Notes
If you want, I can draft a small test or propose a refresh approach that avoids writing output. |
Depending upon settings, the prompt message might be invisible after
returning from an fzf search. One cause could be
export FZF_DEFAULT_OPTS='--height=15%'
Leaving aside the question of the interaction between the environment
variable and the search interface expected by the mycli documentation,
we can solve the issue of the lost prompt message by manually
invalidating the display.
As the docstring notes, app.invalidate() did not have the desired
effect, and caused warnings at exit time:
Task was destroyed but it is pending!
11c047b to
111beaf
Compare
Description
Depending upon settings, the prompt message might be invisible after returning from an fzf search. One cause could be
Leaving aside the question of the interaction between the environment variable and the search interface expected by the mycli documentation, we can solve the issue of the lost prompt message by manually invalidating the display.
As the docstring notes,
app.invalidate()did not have the desired effect, and caused warnings at exit time:While this is more general, it is related to #1630 , which ensures that the above specific
--height=15%issue is resolved in a specific way.Checklist
changelog.mdfile.AUTHORSfile (or it's already there).