comparison src/clipboard.c @ 20707:ec89debe5037 v8.2.0907

patch 8.2.0907: when using :global clipboard isn't set correctly Commit: https://github.com/vim/vim/commit/07188fc5ef2366a3b1952e8686a4031b44152d59 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 5 20:03:16 2020 +0200 patch 8.2.0907: when using :global clipboard isn't set correctly Problem: When using :global clipboard isn't set correctly. Solution: Set "clip_unnamed_saved" instead of "clip_unnamed". (Christian Brabandt, closes #6203, closes #6198)
author Bram Moolenaar <Bram@vim.org>
date Fri, 05 Jun 2020 20:15:04 +0200
parents aadd1cae2ff5
children d10a37eb91ee
comparison
equal deleted inserted replaced
20706:666c23d18e53 20707:ec89debe5037
1315 if (*p == ',') 1315 if (*p == ',')
1316 ++p; 1316 ++p;
1317 } 1317 }
1318 if (errmsg == NULL) 1318 if (errmsg == NULL)
1319 { 1319 {
1320 clip_unnamed = new_unnamed; 1320 if (global_busy)
1321 // clip_unnamed will be reset to clip_unnamed_saved
1322 // at end_global_changes
1323 clip_unnamed_saved = new_unnamed;
1324 else
1325 clip_unnamed = new_unnamed;
1321 clip_autoselect_star = new_autoselect_star; 1326 clip_autoselect_star = new_autoselect_star;
1322 clip_autoselect_plus = new_autoselect_plus; 1327 clip_autoselect_plus = new_autoselect_plus;
1323 clip_autoselectml = new_autoselectml; 1328 clip_autoselectml = new_autoselectml;
1324 clip_html = new_html; 1329 clip_html = new_html;
1325 vim_regfree(clip_exclude_prog); 1330 vim_regfree(clip_exclude_prog);