comparison src/main.c @ 3488:2722f11ddc99 v7.3.508

updated for version 7.3.508 Problem: Default for v:register is not set. Solution: Init v:register in eval_init(). Correct for 'clipboard' before the main loop. (Ingo Karkat)
author Bram Moolenaar <bram@vim.org>
date Wed, 25 Apr 2012 18:24:29 +0200
parents 00fa605e7d7b
children 509e55bd4a3f
comparison
equal deleted inserted replaced
3487:7e60e3985f71 3488:2722f11ddc99
926 #ifdef FEAT_AUTOCMD 926 #ifdef FEAT_AUTOCMD
927 apply_autocmds(EVENT_VIMENTER, NULL, NULL, FALSE, curbuf); 927 apply_autocmds(EVENT_VIMENTER, NULL, NULL, FALSE, curbuf);
928 TIME_MSG("VimEnter autocommands"); 928 TIME_MSG("VimEnter autocommands");
929 #endif 929 #endif
930 930
931 #if defined(FEAT_EVAL) && defined(FEAT_CLIPBOARD)
932 /* Adjust default register name for "unnamed" in 'clipboard'. Can only be
933 * done after the clipboard is available and all initial commands that may
934 * modify the 'clipboard' setting have run; i.e. just before entering the
935 * main loop. */
936 {
937 int default_regname = 0;
938 adjust_clip_reg(&default_regname);
939 set_reg_var(default_regname);
940 }
941 #endif
942
931 #if defined(FEAT_DIFF) && defined(FEAT_SCROLLBIND) 943 #if defined(FEAT_DIFF) && defined(FEAT_SCROLLBIND)
932 /* When a startup script or session file setup for diff'ing and 944 /* When a startup script or session file setup for diff'ing and
933 * scrollbind, sync the scrollbind now. */ 945 * scrollbind, sync the scrollbind now. */
934 if (curwin->w_p_diff && curwin->w_p_scb) 946 if (curwin->w_p_diff && curwin->w_p_scb)
935 { 947 {
1355 buf = wp->w_buffer; 1367 buf = wp->w_buffer;
1356 if (buf->b_changedtick != -1) 1368 if (buf->b_changedtick != -1)
1357 { 1369 {
1358 apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname, 1370 apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname,
1359 buf->b_fname, FALSE, buf); 1371 buf->b_fname, FALSE, buf);
1360 buf->b_changedtick = -1; /* note that we did it already */ 1372 buf->b_changedtick = -1; /* note that we did it already */
1361 /* start all over, autocommands may mess up the lists */ 1373 /* start all over, autocommands may mess up the lists */
1362 next_tp = first_tabpage; 1374 next_tp = first_tabpage;
1363 break; 1375 break;
1364 } 1376 }
1365 } 1377 }