File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2125,7 +2125,7 @@ f_popup_clear(typval_T *argvars, typval_T *rettv UNUSED)
21252125 int force = FALSE;
21262126
21272127 if (argvars [0 ].v_type != VAR_UNKNOWN )
2128- force = (int )tv_get_number (& argvars [0 ]);
2128+ force = (int )tv_get_bool (& argvars [0 ]);
21292129 close_all_popups (force );
21302130}
21312131
Original file line number Diff line number Diff line change @@ -2559,20 +2559,23 @@ endfunc
25592559
25602560func Test_popupwin_close_prevwin ()
25612561 CheckFeature terminal
2562+ call Popupwin_close_prevwin ()
2563+ endfunc
25622564
2563- call assert_equal (1 , winnr (' $' ))
2565+ def Popupwin_close_prevwin ()
2566+ assert_equal (1 , winnr (' $' ))
25642567 split
25652568 wincmd b
2566- call assert_equal (2 , winnr ())
2569+ assert_equal (2 , winnr ())
25672570 let buf = term_start (&shell , #{hidden : 1 })
2568- call popup_create (buf , {})
2569- call TermWait (buf , 100 )
2570- call popup_clear (1 )
2571- call assert_equal (2 , winnr ())
2571+ popup_create (buf , {})
2572+ TermWait (buf , 100 )
2573+ popup_clear (true )
2574+ assert_equal (2 , winnr ())
25722575
25732576 quit
25742577 exe ' bwipe! ' .. buf
2575- endfunc
2578+ enddef
25762579
25772580func Test_popupwin_with_buffer_and_filter ()
25782581 new Xwithfilter
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+ 1578 ,
757759/**/
758760 1577 ,
759761/**/
You can’t perform that action at this time.
0 commit comments