|
Karsten Hopp |
3b1acc |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
3b1acc |
Subject: Patch 7.3.649
|
|
Karsten Hopp |
3b1acc |
Fcc: outbox
|
|
Karsten Hopp |
3b1acc |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
3b1acc |
Mime-Version: 1.0
|
|
Karsten Hopp |
3b1acc |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
3b1acc |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
3b1acc |
------------
|
|
Karsten Hopp |
3b1acc |
|
|
Karsten Hopp |
3b1acc |
Patch 7.3.649
|
|
Karsten Hopp |
3b1acc |
Problem: When 'clipboard' is set to "unnamed" small deletes end up in the
|
|
Karsten Hopp |
3b1acc |
numbered registers. (Ingo Karkat)
|
|
Karsten Hopp |
3b1acc |
Solution: Use the original register name to decide whether to put a delete
|
|
Karsten Hopp |
3b1acc |
in a numbered register. (Christian Brabandt)
|
|
Karsten Hopp |
3b1acc |
Files: src/ops.c
|
|
Karsten Hopp |
3b1acc |
|
|
Karsten Hopp |
3b1acc |
|
|
Karsten Hopp |
3b1acc |
*** ../vim-7.3.648/src/ops.c 2012-08-08 18:01:00.000000000 +0200
|
|
Karsten Hopp |
3b1acc |
--- src/ops.c 2012-09-05 14:13:32.000000000 +0200
|
|
Karsten Hopp |
3b1acc |
***************
|
|
Karsten Hopp |
3b1acc |
*** 1623,1628 ****
|
|
Karsten Hopp |
3b1acc |
--- 1623,1629 ----
|
|
Karsten Hopp |
3b1acc |
#endif
|
|
Karsten Hopp |
3b1acc |
linenr_T old_lcount = curbuf->b_ml.ml_line_count;
|
|
Karsten Hopp |
3b1acc |
int did_yank = FALSE;
|
|
Karsten Hopp |
3b1acc |
+ int orig_regname = oap->regname;
|
|
Karsten Hopp |
3b1acc |
|
|
Karsten Hopp |
3b1acc |
if (curbuf->b_ml.ml_flags & ML_EMPTY) /* nothing to do */
|
|
Karsten Hopp |
3b1acc |
return OK;
|
|
Karsten Hopp |
3b1acc |
***************
|
|
Karsten Hopp |
3b1acc |
*** 1715,1722 ****
|
|
Karsten Hopp |
3b1acc |
/*
|
|
Karsten Hopp |
3b1acc |
* Put deleted text into register 1 and shift number registers if the
|
|
Karsten Hopp |
3b1acc |
* delete contains a line break, or when a regname has been specified.
|
|
Karsten Hopp |
3b1acc |
*/
|
|
Karsten Hopp |
3b1acc |
! if (oap->regname != 0 || oap->motion_type == MLINE
|
|
Karsten Hopp |
3b1acc |
|| oap->line_count > 1 || oap->use_reg_one)
|
|
Karsten Hopp |
3b1acc |
{
|
|
Karsten Hopp |
3b1acc |
y_current = &y_regs[9];
|
|
Karsten Hopp |
3b1acc |
--- 1716,1725 ----
|
|
Karsten Hopp |
3b1acc |
/*
|
|
Karsten Hopp |
3b1acc |
* Put deleted text into register 1 and shift number registers if the
|
|
Karsten Hopp |
3b1acc |
* delete contains a line break, or when a regname has been specified.
|
|
Karsten Hopp |
3b1acc |
+ * Use the register name from before adjust_clip_reg() may have
|
|
Karsten Hopp |
3b1acc |
+ * changed it.
|
|
Karsten Hopp |
3b1acc |
*/
|
|
Karsten Hopp |
3b1acc |
! if (orig_regname != 0 || oap->motion_type == MLINE
|
|
Karsten Hopp |
3b1acc |
|| oap->line_count > 1 || oap->use_reg_one)
|
|
Karsten Hopp |
3b1acc |
{
|
|
Karsten Hopp |
3b1acc |
y_current = &y_regs[9];
|
|
Karsten Hopp |
3b1acc |
*** ../vim-7.3.648/src/version.c 2012-09-05 13:30:22.000000000 +0200
|
|
Karsten Hopp |
3b1acc |
--- src/version.c 2012-09-05 14:17:55.000000000 +0200
|
|
Karsten Hopp |
3b1acc |
***************
|
|
Karsten Hopp |
3b1acc |
*** 721,722 ****
|
|
Karsten Hopp |
3b1acc |
--- 721,724 ----
|
|
Karsten Hopp |
3b1acc |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
3b1acc |
+ /**/
|
|
Karsten Hopp |
3b1acc |
+ 649,
|
|
Karsten Hopp |
3b1acc |
/**/
|
|
Karsten Hopp |
3b1acc |
|
|
Karsten Hopp |
3b1acc |
--
|
|
Karsten Hopp |
3b1acc |
'I generally avoid temptation unless I can't resist it."
|
|
Karsten Hopp |
3b1acc |
-- Mae West
|
|
Karsten Hopp |
3b1acc |
|
|
Karsten Hopp |
3b1acc |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
3b1acc |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
3b1acc |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
3b1acc |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|