]> git.pld-linux.org Git - packages/vim.git/blame - 7.3.502
- up to 7.3.600
[packages/vim.git] / 7.3.502
CommitLineData
03d4279c
AM
1To: vim_dev@googlegroups.com
2Subject: Patch 7.3.502
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.3.502
11Problem: Netbeans insert halfway a line actually appends to the line.
12Solution: Insert halfway the line. (Brian Victor)
13Files: src/netbeans.c
14
15
16*** ../vim-7.3.501/src/netbeans.c 2012-01-10 22:31:26.000000000 +0100
17--- src/netbeans.c 2012-04-20 19:44:31.000000000 +0200
18***************
19*** 1812,1825 ****
20 char_u *oldline = ml_get(lnum);
21 char_u *newline;
22
23! /* Insert halfway a line. For simplicity we assume we
24! * need to append to the line. */
25 newline = alloc_check(
26 (unsigned)(STRLEN(oldline) + len + 1));
27 if (newline != NULL)
28 {
29! STRCPY(newline, oldline);
30 STRCAT(newline, args);
31 ml_replace(lnum, newline, FALSE);
32 }
33 }
34--- 1812,1826 ----
35 char_u *oldline = ml_get(lnum);
36 char_u *newline;
37
38! /* Insert halfway a line. */
39 newline = alloc_check(
40 (unsigned)(STRLEN(oldline) + len + 1));
41 if (newline != NULL)
42 {
43! mch_memmove(newline, oldline, (size_t)pos->col);
44! newline[pos->col] = NUL;
45 STRCAT(newline, args);
46+ STRCAT(newline, oldline + pos->col);
47 ml_replace(lnum, newline, FALSE);
48 }
49 }
50*** ../vim-7.3.501/src/version.c 2012-04-20 18:05:42.000000000 +0200
51--- src/version.c 2012-04-20 19:46:48.000000000 +0200
52***************
53*** 716,717 ****
54--- 716,719 ----
55 { /* Add new patch number below this line */
56+ /**/
57+ 502,
58 /**/
59
60--
61Time flies like an arrow.
62Fruit flies like a banana.
63
64 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
65/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
66\\\ an exciting new programming language -- http://www.Zimbu.org ///
67 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.034894 seconds and 4 git commands to generate.