File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,8 @@ impl MultiSelect<'_> {
266
266
if allow_quit {
267
267
if self . clear {
268
268
render. clear ( ) ?;
269
+ } else {
270
+ term. clear_last_lines ( paging. capacity ) ?;
269
271
}
270
272
271
273
term. show_cursor ( ) ?;
Original file line number Diff line number Diff line change @@ -278,7 +278,9 @@ impl Select<'_> {
278
278
Key :: Escape | Key :: Char ( 'q' ) => {
279
279
if allow_quit {
280
280
if self . clear {
281
- term. clear_last_lines ( self . items . len ( ) ) ?;
281
+ render. clear ( ) ?;
282
+ } else {
283
+ term. clear_last_lines ( paging. capacity ) ?;
282
284
}
283
285
284
286
term. show_cursor ( ) ?;
Original file line number Diff line number Diff line change @@ -277,7 +277,9 @@ impl Sort<'_> {
277
277
Key :: Escape | Key :: Char ( 'q' ) => {
278
278
if allow_quit {
279
279
if self . clear {
280
- term. clear_last_lines ( self . items . len ( ) ) ?;
280
+ render. clear ( ) ?;
281
+ } else {
282
+ term. clear_last_lines ( paging. capacity ) ?;
281
283
}
282
284
283
285
term. show_cursor ( ) ?;
You can’t perform that action at this time.
0 commit comments