|
Karsten Hopp |
3fb1ed |
To: vim-dev@vim.org
|
|
Karsten Hopp |
3fb1ed |
Subject: patch 7.0.186
|
|
Karsten Hopp |
3fb1ed |
Fcc: outbox
|
|
Karsten Hopp |
3fb1ed |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
3fb1ed |
Mime-Version: 1.0
|
|
Karsten Hopp |
3fb1ed |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
3fb1ed |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
3fb1ed |
------------
|
|
Karsten Hopp |
3fb1ed |
|
|
Karsten Hopp |
3fb1ed |
Patch 7.0.186
|
|
Karsten Hopp |
3fb1ed |
Problem: Get an ml_get error when 'encoding' is "utf-8" and searching for
|
|
Karsten Hopp |
3fb1ed |
"/\_s*/e" in an empty buffer. (Andrew Maykov)
|
|
Karsten Hopp |
3fb1ed |
Solution: Don't try getting the line just below the last line.
|
|
Karsten Hopp |
3fb1ed |
Files: src/search.c
|
|
Karsten Hopp |
3fb1ed |
|
|
Karsten Hopp |
3fb1ed |
|
|
Karsten Hopp |
3fb1ed |
*** ../vim-7.0.185/src/search.c Sat Oct 14 14:33:21 2006
|
|
Karsten Hopp |
3fb1ed |
--- src/search.c Tue Jan 16 15:31:28 2007
|
|
Karsten Hopp |
3fb1ed |
***************
|
|
Karsten Hopp |
3fb1ed |
*** 812,818 ****
|
|
Karsten Hopp |
3fb1ed |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
3fb1ed |
if (has_mbyte)
|
|
Karsten Hopp |
3fb1ed |
{
|
|
Karsten Hopp |
3fb1ed |
! ptr = ml_get_buf(buf, pos->lnum, FALSE);
|
|
Karsten Hopp |
3fb1ed |
pos->col -= (*mb_head_off)(ptr, ptr + pos->col);
|
|
Karsten Hopp |
3fb1ed |
}
|
|
Karsten Hopp |
3fb1ed |
#endif
|
|
Karsten Hopp |
3fb1ed |
--- 812,822 ----
|
|
Karsten Hopp |
3fb1ed |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
3fb1ed |
if (has_mbyte)
|
|
Karsten Hopp |
3fb1ed |
{
|
|
Karsten Hopp |
3fb1ed |
! /* 'e' offset may put us just below the last line */
|
|
Karsten Hopp |
3fb1ed |
! if (pos->lnum > buf->b_ml.ml_line_count)
|
|
Karsten Hopp |
3fb1ed |
! ptr = "";
|
|
Karsten Hopp |
3fb1ed |
! else
|
|
Karsten Hopp |
3fb1ed |
! ptr = ml_get_buf(buf, pos->lnum, FALSE);
|
|
Karsten Hopp |
3fb1ed |
pos->col -= (*mb_head_off)(ptr, ptr + pos->col);
|
|
Karsten Hopp |
3fb1ed |
}
|
|
Karsten Hopp |
3fb1ed |
#endif
|
|
Karsten Hopp |
3fb1ed |
*** ../vim-7.0.185/src/version.c Tue Jan 16 15:44:59 2007
|
|
Karsten Hopp |
3fb1ed |
--- src/version.c Tue Jan 16 15:59:37 2007
|
|
Karsten Hopp |
3fb1ed |
***************
|
|
Karsten Hopp |
3fb1ed |
*** 668,669 ****
|
|
Karsten Hopp |
3fb1ed |
--- 668,671 ----
|
|
Karsten Hopp |
3fb1ed |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
3fb1ed |
+ /**/
|
|
Karsten Hopp |
3fb1ed |
+ 186,
|
|
Karsten Hopp |
3fb1ed |
/**/
|
|
Karsten Hopp |
3fb1ed |
|
|
Karsten Hopp |
3fb1ed |
--
|
|
Karsten Hopp |
3fb1ed |
Time is an illusion. Lunchtime doubly so.
|
|
Karsten Hopp |
3fb1ed |
-- Ford Prefect, in Douglas Adams'
|
|
Karsten Hopp |
3fb1ed |
"The Hitchhiker's Guide to the Galaxy"
|
|
Karsten Hopp |
3fb1ed |
|
|
Karsten Hopp |
3fb1ed |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
3fb1ed |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
3fb1ed |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
3fb1ed |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|