summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-02-11 23:45:37 +0100
committerBram Moolenaar <Bram@vim.org>2012-02-11 23:45:37 +0100
commit28f2908d95a6c96801ebdb17735242a81295d095 (patch)
treee90c684d32fffa2c163d3959e132fcea47e75773 /src/fileio.c
parent68ba0dd6332d38db5edabdd5f1bcb6fdc75d5f68 (diff)
downloadvim-git-28f2908d95a6c96801ebdb17735242a81295d095.tar.gz
updated for version 7.3.437v7.3.437
Problem: Continue looping inside FOR_ALL_TAB_WINDOWS even when already done. Solution: Use goto instead of break. (Hirohito Higashi)
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index b30d31102..8ed878d73 100644
--- 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);