File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ async function startPicker(
9494 } ) ,
9595 ) ;
9696
97- zindex ++ ;
97+ zindex += 5 ;
9898 stack . defer ( ( ) => {
99- zindex -- ;
99+ zindex -= 5 ;
100100 } ) ;
101101 stack . use ( await itemPicker . open ( denops , { signal } ) ) ;
102102 while ( true ) {
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ export class Picker<T> implements AsyncDisposable {
6868 this . #name = params . name ;
6969 this . #layout = params . layout ;
7070
71+ const zindex = params . zindex ?? 50 ;
7172 const { screen, theme } = params ;
7273 const isPreviewRequired = ! ! params . previewer ;
7374 const borders = isPreviewRequired
@@ -81,22 +82,22 @@ export class Picker<T> implements AsyncDisposable {
8182 dimension : dimensions . input ,
8283 border : borders . input ,
8384 title : this . #name,
84- zindex : params . zindex ,
85+ zindex,
8586 } ) ,
8687 ) ;
8788 this . #listComponent = this . #stack. use (
8889 new ListComponent ( {
8990 dimension : dimensions . list ,
9091 border : borders . list ,
91- zindex : params . zindex ,
92+ zindex : zindex + 1 ,
9293 } ) ,
9394 ) ;
9495 if ( "preview" in dimensions && "preview" in borders ) {
9596 this . #previewComponent = this . #stack. use (
9697 new PreviewComponent ( {
9798 dimension : dimensions . preview as Dimension ,
9899 border : borders . preview as Border ,
99- zindex : params . zindex ,
100+ zindex : zindex + 2 ,
100101 } ) ,
101102 ) ;
102103 }
You can’t perform that action at this time.
0 commit comments