]>
Commit | Line | Data |
---|---|---|
0acf97b2 | 1 | To: vim_dev@googlegroups.com |
2 | Subject: Patch 7.3.272 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.3.272 | |
11 | Problem: ":put =list" does not add an empty line for a trailing empty | |
12 | item. | |
13 | Solution: Add a trailing NL when turning a list into a string. | |
14 | Files: src/eval.c | |
15 | ||
16 | ||
17 | *** ../vim-7.3.271/src/eval.c 2011-07-15 21:24:06.000000000 +0200 | |
18 | --- src/eval.c 2011-08-10 12:31:51.000000000 +0200 | |
19 | *************** | |
20 | *** 1357,1363 **** | |
21 | --- 1357,1367 ---- | |
22 | { | |
23 | ga_init2(&ga, (int)sizeof(char), 80); | |
24 | if (tv.vval.v_list != NULL) | |
25 | + { | |
26 | list_join(&ga, tv.vval.v_list, (char_u *)"\n", TRUE, 0); | |
27 | + if (tv.vval.v_list->lv_len > 0) | |
28 | + ga_append(&ga, NL); | |
29 | + } | |
30 | ga_append(&ga, NUL); | |
31 | retval = (char_u *)ga.ga_data; | |
32 | } | |
33 | *** ../vim-7.3.271/src/version.c 2011-08-10 12:19:00.000000000 +0200 | |
34 | --- src/version.c 2011-08-10 12:36:41.000000000 +0200 | |
35 | *************** | |
36 | *** 711,712 **** | |
37 | --- 711,714 ---- | |
38 | { /* Add new patch number below this line */ | |
39 | + /**/ | |
40 | + 272, | |
41 | /**/ | |
42 | ||
43 | -- | |
44 | Lose weight, NEVER Diet again with | |
45 | The "Invisible Weight Loss Patch" | |
46 | (spam e-mail) | |
47 | ||
48 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
49 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
50 | \\\ an exciting new programming language -- http://www.Zimbu.org /// | |
51 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |