updated for version 7.0d
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 790b30e..9206e02 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3253,7 +3253,7 @@
buf_copy_options(buf, BCO_ENTER);
/* close the link to the current buffer */
- u_sync();
+ u_sync(FALSE);
close_buffer(curwin, curbuf,
(flags & ECMD_HIDE) ? 0 : DOBUF_UNLOAD);
@@ -4289,7 +4289,7 @@
if (!do_count && !curbuf->b_p_ma)
{
- /* Substitusion is not allowed in non-'modifiable' buffer */
+ /* Substitution is not allowed in non-'modifiable' buffer */
EMSG(_(e_modifiable));
return;
}
@@ -6919,12 +6919,7 @@
if (wp->w_buffer == buf)
{
# ifdef FEAT_WINDOWS
- goto_tabpage_tp(tp);
- win_enter(wp, TRUE);
-# ifdef FEAT_GUI_TABLINE
- if (gui_use_tabline())
- gui_mch_set_curtab(tabpage_index(curtab));
-# endif
+ goto_tabpage_win(tp, wp);
# endif
curwin->w_arg_idx = 0;
return;