diff src/quickfix.c @ 10281:92fa8e5ef210 v8.0.0037

commit https://github.com/vim/vim/commit/0a9046fbcb33770517ab0220b8100c4494bddab2 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 15 19:28:13 2016 +0200 patch 8.0.0037 Problem: Get E924 when switching tabs. () Solution: Use win_valid_any_tab() instead of win_valid(). (Martin Vuille, closes https://github.com/vim/vim/issues/1167, closes https://github.com/vim/vim/issues/1171)
author Christian Brabandt <cb@256bit.org>
date Sat, 15 Oct 2016 19:30:04 +0200
parents 2d0e6034743a
children d52d97bf675e
line wrap: on
line diff
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2266,7 +2266,7 @@ win_found:
 
 	    ok = buflist_getfile(qf_ptr->qf_fnum,
 			    (linenr_T)1, GETF_SETMARK | GETF_SWITCH, forceit);
-	    if (qi != &ql_info && !win_valid(oldwin))
+	    if (qi != &ql_info && !win_valid_any_tab(oldwin))
 	    {
 		EMSG(_("E924: Current window was closed"));
 		is_abort = TRUE;