]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.0c02
authorBram Moolenaar <Bram@vim.org>
Tue, 28 Mar 2006 20:57:42 +0000 (20:57 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 28 Mar 2006 20:57:42 +0000 (20:57 +0000)
runtime/makemenu.vim
src/buffer.c
src/ex_docmd.c
src/main.aap
src/window.c

index 80834220cdde31d9b0f46dceb24f6e01b8d269ee..8ea5a1eb29c4fcbd7f0fcc058f0c2f72a042be84 100644 (file)
@@ -1,6 +1,6 @@
 " Script to define the syntax menu in synmenu.vim
 " Maintainer:  Bram Moolenaar <Bram@vim.org>
-" Last Change: 2006 Mar 26
+" Last Change: 2006 Mar 28
 
 " This is used by "make menu" in the src directory.
 edit <sfile>:p:h/synmenu.vim
@@ -136,6 +136,7 @@ SynMenu C.CVS.cvsrc:cvsrc
 SynMenu DE.D:d
 SynMenu DE.Debian.Debian\ ChangeLog:debchangelog
 SynMenu DE.Debian.Debian\ Control:debcontrol
+SynMenu DE.Debian.Debian\ Sources\.list:debsources
 SynMenu DE.Desktop:desktop
 SynMenu DE.Dict\ config:dictconf
 SynMenu DE.Dictd\ config:dictdconf
index 439b5f2b60d007eb01740c5cf9b2df625d928825..a26806540bfdd9356e341607a8fe30334067a15c 100644 (file)
@@ -381,8 +381,10 @@ close_buffer(win, buf, action)
      * unloaded. */
     if (buf->b_nwindows > 0 || !unload_buf)
     {
+#if 0      /* why was this here? */
        if (buf == curbuf)
            u_sync();       /* sync undo before going to another buffer */
+#endif
        return;
     }
 
@@ -1312,10 +1314,14 @@ set_curbuf(buf, action)
 #else
        if (buf_valid(prevbuf))
 #endif
+       {
+           if (prevbuf == curbuf)
+               u_sync();
            close_buffer(prevbuf == curwin->w_buffer ? curwin : NULL, prevbuf,
                    unload ? action : (action == DOBUF_GOTO
                        && !P_HID(prevbuf)
                        && !bufIsChanged(prevbuf)) ? DOBUF_UNLOAD : 0);
+       }
     }
 #ifdef FEAT_AUTOCMD
 # ifdef FEAT_EVAL
index dbab4e2d0df25502d83c9392ccd62943068cc571..cba3da56f39b39f0cc18140acf9246f1fa8083bd 100644 (file)
@@ -9070,7 +9070,7 @@ ex_pedit(eap)
     win_T      *curwin_save = curwin;
 
     g_do_tagpreview = p_pvh;
-    prepare_tagpreview();
+    prepare_tagpreview(TRUE);
     keep_help_flag = curwin_save->w_buffer->b_help;
     do_exedit(eap, NULL);
     keep_help_flag = FALSE;
index a4de631c038286f57b108084a965b5716f7c35dc..3fb2a9c0a6e6cf5ebca7832fdc1ff2d4857ac0cc 100644 (file)
@@ -296,7 +296,7 @@ Source =
         fold.c
         getchar.c
         hardcopy.c
-        hashtable.c
+        hashtab.c
         if_cscope.c
         if_xcmdsrv.c
         main.c
@@ -314,7 +314,7 @@ Source =
         option.c
         os_unix.c
         auto/pathdef.c
-        popupmenu.c
+        popupmnu.c
         quickfix.c
         regexp.c
         screen.c
index c37ec6769797d9bbebfbc02be8fc65301e8697bb..6a12de19f531220f9ab9014fa735398436e0a8f8 100644 (file)
@@ -3192,6 +3192,18 @@ win_new_tabpage(after)
 
        newtp->tp_topframe = topframe;
        last_status(FALSE);
+
+#if defined(FEAT_GUI)
+       /* When 'guioptions' includes 'L' or 'R' may have to remove or add
+        * scrollbars.  Have to update them anyway. */
+       if (gui.in_use && starting == 0)
+       {
+           gui_init_which_components(NULL);
+           gui_update_scrollbars(TRUE);
+       }
+       need_mouse_correct = TRUE;
+#endif
+
        redraw_all_later(CLEAR);
 #ifdef FEAT_AUTOCMD
        apply_autocmds(EVENT_TABENTER, NULL, NULL, FALSE, curbuf);