]> git.pld-linux.org Git - packages/vim.git/blame - 7.0.186
- new
[packages/vim.git] / 7.0.186
CommitLineData
9b411fd1
ER
1To: vim-dev@vim.org
2Subject: patch 7.0.186
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.0.186
11Problem: Get an ml_get error when 'encoding' is "utf-8" and searching for
12 "/\_s*/e" in an empty buffer. (Andrew Maykov)
13Solution: Don't try getting the line just below the last line.
14Files: src/search.c
15
16
17*** ../vim-7.0.185/src/search.c Sat Oct 14 14:33:21 2006
18--- src/search.c Tue Jan 16 15:31:28 2007
19***************
20*** 812,818 ****
21 #ifdef FEAT_MBYTE
22 if (has_mbyte)
23 {
24! ptr = ml_get_buf(buf, pos->lnum, FALSE);
25 pos->col -= (*mb_head_off)(ptr, ptr + pos->col);
26 }
27 #endif
28--- 812,822 ----
29 #ifdef FEAT_MBYTE
30 if (has_mbyte)
31 {
32! /* 'e' offset may put us just below the last line */
33! if (pos->lnum > buf->b_ml.ml_line_count)
34! ptr = "";
35! else
36! ptr = ml_get_buf(buf, pos->lnum, FALSE);
37 pos->col -= (*mb_head_off)(ptr, ptr + pos->col);
38 }
39 #endif
40*** ../vim-7.0.185/src/version.c Tue Jan 16 15:44:59 2007
41--- src/version.c Tue Jan 16 15:59:37 2007
42***************
43*** 668,669 ****
44--- 668,671 ----
45 { /* Add new patch number below this line */
46+ /**/
47+ 186,
48 /**/
49
50--
51Time is an illusion. Lunchtime doubly so.
52 -- Ford Prefect, in Douglas Adams'
53 "The Hitchhiker's Guide to the Galaxy"
54
55 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
56/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
57\\\ download, build and distribute -- http://www.A-A-P.org ///
58 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.070915 seconds and 4 git commands to generate.