|
Karsten Hopp |
ccfa66 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
ccfa66 |
Subject: Patch 7.3.476
|
|
Karsten Hopp |
ccfa66 |
Fcc: outbox
|
|
Karsten Hopp |
ccfa66 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
ccfa66 |
Mime-Version: 1.0
|
|
Karsten Hopp |
ccfa66 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
ccfa66 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
ccfa66 |
------------
|
|
Karsten Hopp |
ccfa66 |
|
|
Karsten Hopp |
ccfa66 |
Patch 7.3.476
|
|
Karsten Hopp |
ccfa66 |
Problem: When selecting a block, using "$" to include the end of each line
|
|
Karsten Hopp |
ccfa66 |
and using "A" and typing a backspace strange things happen.
|
|
Karsten Hopp |
ccfa66 |
(Yuangchen Xie)
|
|
Karsten Hopp |
ccfa66 |
Solution: Avoid using a negative length. (Christian Brabandt)
|
|
Karsten Hopp |
ccfa66 |
Files: src/ops.c
|
|
Karsten Hopp |
ccfa66 |
|
|
Karsten Hopp |
ccfa66 |
|
|
Karsten Hopp |
ccfa66 |
*** ../vim-7.3.475/src/ops.c 2012-03-07 19:30:32.000000000 +0100
|
|
Karsten Hopp |
ccfa66 |
--- src/ops.c 2012-03-23 12:22:36.000000000 +0100
|
|
Karsten Hopp |
ccfa66 |
***************
|
|
Karsten Hopp |
ccfa66 |
*** 2602,2608 ****
|
|
Karsten Hopp |
ccfa66 |
firstline = ml_get(oap->start.lnum) + bd.textcol;
|
|
Karsten Hopp |
ccfa66 |
if (oap->op_type == OP_APPEND)
|
|
Karsten Hopp |
ccfa66 |
firstline += bd.textlen;
|
|
Karsten Hopp |
ccfa66 |
! if ((ins_len = (long)STRLEN(firstline) - pre_textlen) > 0)
|
|
Karsten Hopp |
ccfa66 |
{
|
|
Karsten Hopp |
ccfa66 |
ins_text = vim_strnsave(firstline, (int)ins_len);
|
|
Karsten Hopp |
ccfa66 |
if (ins_text != NULL)
|
|
Karsten Hopp |
ccfa66 |
--- 2602,2609 ----
|
|
Karsten Hopp |
ccfa66 |
firstline = ml_get(oap->start.lnum) + bd.textcol;
|
|
Karsten Hopp |
ccfa66 |
if (oap->op_type == OP_APPEND)
|
|
Karsten Hopp |
ccfa66 |
firstline += bd.textlen;
|
|
Karsten Hopp |
ccfa66 |
! if (pre_textlen >= 0
|
|
Karsten Hopp |
ccfa66 |
! && (ins_len = (long)STRLEN(firstline) - pre_textlen) > 0)
|
|
Karsten Hopp |
ccfa66 |
{
|
|
Karsten Hopp |
ccfa66 |
ins_text = vim_strnsave(firstline, (int)ins_len);
|
|
Karsten Hopp |
ccfa66 |
if (ins_text != NULL)
|
|
Karsten Hopp |
ccfa66 |
*** ../vim-7.3.475/src/version.c 2012-03-16 20:16:42.000000000 +0100
|
|
Karsten Hopp |
ccfa66 |
--- src/version.c 2012-03-23 14:14:49.000000000 +0100
|
|
Karsten Hopp |
ccfa66 |
***************
|
|
Karsten Hopp |
ccfa66 |
*** 716,717 ****
|
|
Karsten Hopp |
ccfa66 |
--- 716,719 ----
|
|
Karsten Hopp |
ccfa66 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
ccfa66 |
+ /**/
|
|
Karsten Hopp |
ccfa66 |
+ 476,
|
|
Karsten Hopp |
ccfa66 |
/**/
|
|
Karsten Hopp |
ccfa66 |
|
|
Karsten Hopp |
ccfa66 |
--
|
|
Karsten Hopp |
ccfa66 |
"Marriage is a wonderful institution...
|
|
Karsten Hopp |
ccfa66 |
but who wants to live in an institution?"
|
|
Karsten Hopp |
ccfa66 |
- Groucho Marx
|
|
Karsten Hopp |
ccfa66 |
|
|
Karsten Hopp |
ccfa66 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
ccfa66 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
ccfa66 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
ccfa66 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|