Mercurial > vim
comparison src/ops.c @ 12642:d1cbe8cb05d0 v8.0.1199
patch 8.0.1199: when 'clipboard' is "autoselectplus" star register is set
commit https://github.com/vim/vim/commit/8bfe07b70878c83c838320cc6a93d62cd78b953f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 15 21:47:05 2017 +0200
patch 8.0.1199: when 'clipboard' is "autoselectplus" star register is set
Problem: When 'clipboard' is "autoselectplus" the star register is also
set. (Gilles Moris)
Solution: Don't set the star register in this situation.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 15 Oct 2017 22:00:05 +0200 |
parents | 0b10cff73322 |
children | 973a0037f4c3 |
comparison
equal
deleted
inserted
replaced
12641:36418888cf0c | 12642:d1cbe8cb05d0 |
---|---|
3257 /* Copy the text from register 0 to the clipboard register. */ | 3257 /* Copy the text from register 0 to the clipboard register. */ |
3258 copy_yank_reg(&(y_regs[PLUS_REGISTER])); | 3258 copy_yank_reg(&(y_regs[PLUS_REGISTER])); |
3259 | 3259 |
3260 clip_own_selection(&clip_plus); | 3260 clip_own_selection(&clip_plus); |
3261 clip_gen_set_selection(&clip_plus); | 3261 clip_gen_set_selection(&clip_plus); |
3262 if (!clip_isautosel_star() && !did_star | 3262 if (!clip_isautosel_star() && !clip_isautosel_plus() |
3263 && curr == &(y_regs[PLUS_REGISTER])) | 3263 && !did_star && curr == &(y_regs[PLUS_REGISTER])) |
3264 { | 3264 { |
3265 copy_yank_reg(&(y_regs[STAR_REGISTER])); | 3265 copy_yank_reg(&(y_regs[STAR_REGISTER])); |
3266 clip_own_selection(&clip_star); | 3266 clip_own_selection(&clip_star); |
3267 clip_gen_set_selection(&clip_star); | 3267 clip_gen_set_selection(&clip_star); |
3268 } | 3268 } |