|
Karsten Hopp |
00c5dd |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
00c5dd |
Subject: Patch 7.4.027
|
|
Karsten Hopp |
00c5dd |
Fcc: outbox
|
|
Karsten Hopp |
00c5dd |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
00c5dd |
Mime-Version: 1.0
|
|
Karsten Hopp |
00c5dd |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
00c5dd |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
00c5dd |
------------
|
|
Karsten Hopp |
00c5dd |
|
|
Karsten Hopp |
00c5dd |
Patch 7.4.027 (after 7.4.025)
|
|
Karsten Hopp |
00c5dd |
Problem: Another valgrind error when using CTRL-X CTRL-F at the start of
|
|
Karsten Hopp |
00c5dd |
the line. (Dominique Pelle)
|
|
Karsten Hopp |
00c5dd |
Solution: Don't call mb_ptr_back() at the start of the line. Add a test.
|
|
Karsten Hopp |
00c5dd |
Files: src/edit.c, src/testdir/test32.in
|
|
Karsten Hopp |
00c5dd |
|
|
Karsten Hopp |
00c5dd |
|
|
Karsten Hopp |
00c5dd |
*** ../vim-7.4.026/src/edit.c 2013-09-08 16:03:40.000000000 +0200
|
|
Karsten Hopp |
00c5dd |
--- src/edit.c 2013-09-08 18:18:32.000000000 +0200
|
|
Karsten Hopp |
00c5dd |
***************
|
|
Karsten Hopp |
00c5dd |
*** 5183,5197 ****
|
|
Karsten Hopp |
00c5dd |
}
|
|
Karsten Hopp |
00c5dd |
else if (ctrl_x_mode == CTRL_X_FILES)
|
|
Karsten Hopp |
00c5dd |
{
|
|
Karsten Hopp |
00c5dd |
- char_u *p = line + startcol;
|
|
Karsten Hopp |
00c5dd |
-
|
|
Karsten Hopp |
00c5dd |
/* Go back to just before the first filename character. */
|
|
Karsten Hopp |
00c5dd |
! mb_ptr_back(line, p);
|
|
Karsten Hopp |
00c5dd |
! while (p > line && vim_isfilec(PTR2CHAR(p)))
|
|
Karsten Hopp |
00c5dd |
mb_ptr_back(line, p);
|
|
Karsten Hopp |
00c5dd |
! startcol = (int)(p - line) + 1;
|
|
Karsten Hopp |
00c5dd |
! if (p == line && vim_isfilec(PTR2CHAR(p)))
|
|
Karsten Hopp |
00c5dd |
! startcol = 0;
|
|
Karsten Hopp |
00c5dd |
|
|
Karsten Hopp |
00c5dd |
compl_col += startcol;
|
|
Karsten Hopp |
00c5dd |
compl_length = (int)curs_col - startcol;
|
|
Karsten Hopp |
00c5dd |
--- 5183,5201 ----
|
|
Karsten Hopp |
00c5dd |
}
|
|
Karsten Hopp |
00c5dd |
else if (ctrl_x_mode == CTRL_X_FILES)
|
|
Karsten Hopp |
00c5dd |
{
|
|
Karsten Hopp |
00c5dd |
/* Go back to just before the first filename character. */
|
|
Karsten Hopp |
00c5dd |
! if (startcol > 0)
|
|
Karsten Hopp |
00c5dd |
! {
|
|
Karsten Hopp |
00c5dd |
! char_u *p = line + startcol;
|
|
Karsten Hopp |
00c5dd |
!
|
|
Karsten Hopp |
00c5dd |
mb_ptr_back(line, p);
|
|
Karsten Hopp |
00c5dd |
! while (p > line && vim_isfilec(PTR2CHAR(p)))
|
|
Karsten Hopp |
00c5dd |
! mb_ptr_back(line, p);
|
|
Karsten Hopp |
00c5dd |
! if (p == line && vim_isfilec(PTR2CHAR(p)))
|
|
Karsten Hopp |
00c5dd |
! startcol = 0;
|
|
Karsten Hopp |
00c5dd |
! else
|
|
Karsten Hopp |
00c5dd |
! startcol = (int)(p - line) + 1;
|
|
Karsten Hopp |
00c5dd |
! }
|
|
Karsten Hopp |
00c5dd |
|
|
Karsten Hopp |
00c5dd |
compl_col += startcol;
|
|
Karsten Hopp |
00c5dd |
compl_length = (int)curs_col - startcol;
|
|
Karsten Hopp |
00c5dd |
*** ../vim-7.4.026/src/testdir/test32.in 2010-05-15 13:04:10.000000000 +0200
|
|
Karsten Hopp |
00c5dd |
--- src/testdir/test32.in 2013-09-08 18:08:07.000000000 +0200
|
|
Karsten Hopp |
00c5dd |
***************
|
|
Karsten Hopp |
00c5dd |
*** 36,41 ****
|
|
Karsten Hopp |
00c5dd |
--- 36,44 ----
|
|
Karsten Hopp |
00c5dd |
:w Xtest11.one
|
|
Karsten Hopp |
00c5dd |
:w Xtest11.two
|
|
Karsten Hopp |
00c5dd |
O??IX?A????
|
|
Karsten Hopp |
00c5dd |
+ :" use CTRL-X CTRL-F to complete Xtest11.one, remove it and then use
|
|
Karsten Hopp |
00c5dd |
+ :" CTRL-X CTRL-F again to verify this doesn't cause trouble.
|
|
Karsten Hopp |
00c5dd |
+ OX?????????????ddk
|
|
Karsten Hopp |
00c5dd |
:se cpt=w
|
|
Karsten Hopp |
00c5dd |
OST??????
|
|
Karsten Hopp |
00c5dd |
:se cpt=u nohid
|
|
Karsten Hopp |
00c5dd |
*** ../vim-7.4.026/src/version.c 2013-09-08 16:07:03.000000000 +0200
|
|
Karsten Hopp |
00c5dd |
--- src/version.c 2013-09-08 18:14:17.000000000 +0200
|
|
Karsten Hopp |
00c5dd |
***************
|
|
Karsten Hopp |
00c5dd |
*** 740,741 ****
|
|
Karsten Hopp |
00c5dd |
--- 740,743 ----
|
|
Karsten Hopp |
00c5dd |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
00c5dd |
+ /**/
|
|
Karsten Hopp |
00c5dd |
+ 27,
|
|
Karsten Hopp |
00c5dd |
/**/
|
|
Karsten Hopp |
00c5dd |
|
|
Karsten Hopp |
00c5dd |
--
|
|
Karsten Hopp |
00c5dd |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
00c5dd |
190. You quickly hand over your wallet, leather jacket, and car keys
|
|
Karsten Hopp |
00c5dd |
during a mugging, then proceed to beat the crap out of your
|
|
Karsten Hopp |
00c5dd |
assailant when he asks for your laptop.
|
|
Karsten Hopp |
00c5dd |
|
|
Karsten Hopp |
00c5dd |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
00c5dd |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
00c5dd |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
00c5dd |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|