diff src/fileio.c @ 3340:539613ce999d v7.3.437

updated for version 7.3.437 Problem: Continue looping inside FOR_ALL_TAB_WINDOWS even when already done. Solution: Use goto instead of break. (Hirohito Higashi)
author Bram Moolenaar <bram@vim.org>
date Sat, 11 Feb 2012 23:45:37 +0100
parents df33dba4e553
children bb67cd961fc3
line wrap: on
line diff
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -8898,10 +8898,11 @@ aucmd_restbuf(aco)
 		    if (tp != curtab)
 			goto_tabpage_tp(tp);
 		    win_goto(aucmd_win);
-		    break;
+		    goto win_found;
 		}
 	    }
 	}
+win_found:
 
 	/* Remove the window and frame from the tree of frames. */
 	(void)winframe_remove(curwin, &dummy, NULL);