File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2266,7 +2266,7 @@ qf_jump(
22662266
22672267 ok = buflist_getfile (qf_ptr -> qf_fnum ,
22682268 (linenr_T )1 , GETF_SETMARK | GETF_SWITCH , forceit );
2269- if (qi != & ql_info && !win_valid (oldwin ))
2269+ if (qi != & ql_info && !win_valid_any_tab (oldwin ))
22702270 {
22712271 EMSG (_ ("E924: Current window was closed" ));
22722272 is_abort = TRUE;
Original file line number Diff line number Diff line change @@ -617,6 +617,22 @@ function Test_locationlist_curwin_was_closed()
617617 augroup ! testgroup
618618endfunction
619619
620+ function Test_locationlist_cross_tab_jump ()
621+ call writefile ([' loclistfoo' ], ' loclistfoo' )
622+ call writefile ([' loclistbar' ], ' loclistbar' )
623+ set switchbuf = usetab
624+
625+ edit loclistfoo
626+ tabedit loclistbar
627+ silent lgrep loclistfoo loclist*
628+ call assert_equal (1 , tabpagenr ())
629+
630+ enew | only | tabonly
631+ set switchbuf &vim
632+ call delete (' loclistfoo' )
633+ call delete (' loclistbar' )
634+ endfunction
635+
620636" More tests for 'errorformat'
621637function ! Test_efm1 ()
622638 if ! has (' unix' )
Original file line number Diff line number Diff line change @@ -764,6 +764,8 @@ static char *(features[]) =
764764
765765static int included_patches [] =
766766{ /* Add new patch number below this line */
767+ /**/
768+ 37 ,
767769/**/
768770 36 ,
769771/**/
You can’t perform that action at this time.
0 commit comments