Mercurial > vim
comparison src/main.c @ 6543:b01ca71f93b2 v7.4.598
updated for version 7.4.598
Problem: ":tabdo windo echo 'hi'" causes "* register not to be changed.
(Salman Halim)
Solution: Change how clip_did_set_selection is used and add
clipboard_needs_update and global_change_count. (Christian
Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 27 Jan 2015 14:09:37 +0100 |
parents | 60659773c73b |
children | 6eecaf5a18ca |
comparison
equal
deleted
inserted
replaced
6542:f52b5c1d7bb0 | 6543:b01ca71f93b2 |
---|---|
957 | 957 |
958 /* start in insert mode */ | 958 /* start in insert mode */ |
959 if (p_im) | 959 if (p_im) |
960 need_start_insertmode = TRUE; | 960 need_start_insertmode = TRUE; |
961 | 961 |
962 #ifdef FEAT_CLIPBOARD | |
963 if (clip_unnamed) | |
964 /* do not overwrite system clipboard while starting up */ | |
965 clip_did_set_selection = -1; | |
966 #endif | |
967 #ifdef FEAT_AUTOCMD | 962 #ifdef FEAT_AUTOCMD |
968 apply_autocmds(EVENT_VIMENTER, NULL, NULL, FALSE, curbuf); | 963 apply_autocmds(EVENT_VIMENTER, NULL, NULL, FALSE, curbuf); |
969 # ifdef FEAT_CLIPBOARD | |
970 if (clip_did_set_selection < 0) | |
971 clip_did_set_selection = TRUE; | |
972 # endif | |
973 TIME_MSG("VimEnter autocommands"); | 964 TIME_MSG("VimEnter autocommands"); |
974 #endif | 965 #endif |
975 | 966 |
976 #if defined(FEAT_EVAL) && defined(FEAT_CLIPBOARD) | 967 #if defined(FEAT_EVAL) && defined(FEAT_CLIPBOARD) |
977 /* Adjust default register name for "unnamed" in 'clipboard'. Can only be | 968 /* Adjust default register name for "unnamed" in 'clipboard'. Can only be |