File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ win_id2wp_tp(int id, tabpage_T **tpp)
117117 if (wp -> w_id == id )
118118 {
119119 if (tpp != NULL )
120- * tpp = tp ;
120+ * tpp = curtab ; // any tabpage would do
121121 return wp ;
122122 }
123123#endif
Original file line number Diff line number Diff line change @@ -2239,6 +2239,18 @@ func Test_popup_settext()
22392239 call delete (' XtestPopupSetText' )
22402240endfunc
22412241
2242+ func Test_popup_settext_getline ()
2243+ let id = popup_create (' ' , #{ tabpage: 0 })
2244+ call popup_settext (id, [' a' ,' b' ])
2245+ call assert_equal (2 , line (' $' , id)) " OK :)
2246+ call popup_close (id)
2247+
2248+ let id = popup_create (' ' , #{ tabpage: -1 })
2249+ call popup_settext (id, [' a' ,' b' ])
2250+ call assert_equal (2 , line (' $' , id)) " Fails :(
2251+ call popup_close (id)
2252+ endfunc
2253+
22422254func Test_popup_hidden ()
22432255 new
22442256
Original file line number Diff line number Diff line change @@ -754,6 +754,8 @@ static char *(features[]) =
754754
755755static int included_patches [] =
756756{ /* Add new patch number below this line */
757+ /**/
758+ 1581 ,
757759/**/
758760 1580 ,
759761/**/
You can’t perform that action at this time.
0 commit comments