|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.025
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.025 (after 7.4.019
|
|
|
22c937 |
Problem: Reading before start of a string.
|
|
|
22c937 |
Solution: Do not call mb_ptr_back() at start of a string. (Dominique Pelle)
|
|
|
22c937 |
Files: src/edit.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.024/src/edit.c 2013-09-07 16:35:38.000000000 +0200
|
|
|
22c937 |
--- src/edit.c 2013-09-08 15:57:20.000000000 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 5187,5197 ****
|
|
|
22c937 |
|
|
|
22c937 |
/* Go back to just before the first filename character. */
|
|
|
22c937 |
mb_ptr_back(line, p);
|
|
|
22c937 |
! while (vim_isfilec(PTR2CHAR(p)) && p >= line)
|
|
|
22c937 |
mb_ptr_back(line, p);
|
|
|
22c937 |
! startcol = (int)(p - line);
|
|
|
22c937 |
|
|
|
22c937 |
! compl_col += ++startcol;
|
|
|
22c937 |
compl_length = (int)curs_col - startcol;
|
|
|
22c937 |
compl_pattern = addstar(line + compl_col, compl_length,
|
|
|
22c937 |
EXPAND_FILES);
|
|
|
22c937 |
--- 5187,5199 ----
|
|
|
22c937 |
|
|
|
22c937 |
/* Go back to just before the first filename character. */
|
|
|
22c937 |
mb_ptr_back(line, p);
|
|
|
22c937 |
! while (p > line && vim_isfilec(PTR2CHAR(p)))
|
|
|
22c937 |
mb_ptr_back(line, p);
|
|
|
22c937 |
! startcol = (int)(p - line) + 1;
|
|
|
22c937 |
! if (p == line && vim_isfilec(PTR2CHAR(p)))
|
|
|
22c937 |
! startcol = 0;
|
|
|
22c937 |
|
|
|
22c937 |
! compl_col += startcol;
|
|
|
22c937 |
compl_length = (int)curs_col - startcol;
|
|
|
22c937 |
compl_pattern = addstar(line + compl_col, compl_length,
|
|
|
22c937 |
EXPAND_FILES);
|
|
|
22c937 |
*** ../vim-7.4.024/src/version.c 2013-09-08 15:40:45.000000000 +0200
|
|
|
22c937 |
--- src/version.c 2013-09-08 15:52:39.000000000 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 740,741 ****
|
|
|
22c937 |
--- 740,743 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 25,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
hundred-and-one symptoms of being an internet addict:
|
|
|
22c937 |
188. You purchase a laptop so you can surf while sitting on the can.
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|