0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.4.445

Problem:    Clipboard may be cleared on startup.
Solution:   Set clip_did_set_selection to -1 during startup. (Christian
            Brabandt)
This commit is contained in:
Bram Moolenaar
2014-09-19 13:46:52 +02:00
parent 103650de90
commit 714db3bb81
3 changed files with 13 additions and 2 deletions

View File

@@ -958,8 +958,17 @@ vim_main2(int argc UNUSED, char **argv UNUSED)
if (p_im)
need_start_insertmode = TRUE;
#ifdef FEAT_CLIPBOARD
if (clip_unnamed)
/* do not overwrite system clipboard while starting up */
clip_did_set_selection = -1;
#endif
#ifdef FEAT_AUTOCMD
apply_autocmds(EVENT_VIMENTER, NULL, NULL, FALSE, curbuf);
# ifdef FEAT_CLIPBOARD
if (clip_did_set_selection < 0)
clip_did_set_selection = TRUE;
# endif
TIME_MSG("VimEnter autocommands");
#endif