summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-17 21:53:23 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-17 21:53:23 +0000
commit997fb4ba696625e27e17c00d5033b20411aa45a3 (patch)
tree491f6645be05ca184f550a69c4c3b7c7a50b38fe /src/misc2.c
parent49d7bf13e0d7e656ac246ec1dd7309560b070289 (diff)
downloadvim-997fb4ba696625e27e17c00d5033b20411aa45a3.zip
updated for version 7.0200
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 2ff4d5c58..680202f1c 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -962,6 +962,12 @@ free_all_mem()
++autocmd_block; /* don't want to trigger autocommands here */
+#ifdef FEAT_WINDOWS
+ /* close all tabs and windows */
+ do_cmdline_cmd((char_u *)"tabonly!");
+ do_cmdline_cmd((char_u *)"only!");
+#endif
+
# if defined(FEAT_SYN_HL)
/* Free all spell info. */
spell_free_all();
@@ -1012,7 +1018,7 @@ free_all_mem()
free_tag_stuff();
free_cd_dir();
set_expr_line(NULL);
- diff_clear();
+ diff_clear(curtab);
clear_sb_text(); /* free any scrollback text */
/* Free some global vars. */
@@ -2792,7 +2798,7 @@ set_fileformat(t, opt_flags)
#ifdef FEAT_WINDOWS
/* This may cause the buffer to become (un)modified. */
check_status(curbuf);
- redraw_tabpage = TRUE;
+ redraw_tabline = TRUE;
#endif
#ifdef FEAT_TITLE
need_maketitle = TRUE; /* set window title later */