4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: getqflist() returns entries for pattern and text with the number
12 zero. Passing these to setqflist() results in the string "0".
13 Solution: Use an empty string instead of the number zero.
17 *** ../vim-7.0.085/src/quickfix.c Tue Aug 29 17:28:56 2006
18 --- src/quickfix.c Mon Sep 4 20:18:48 2006
21 || dict_add_nr_str(dict, "col", (long)qfp->qf_col, NULL) == FAIL
22 || dict_add_nr_str(dict, "vcol", (long)qfp->qf_viscol, NULL) == FAIL
23 || dict_add_nr_str(dict, "nr", (long)qfp->qf_nr, NULL) == FAIL
24 ! || dict_add_nr_str(dict, "pattern", 0L, qfp->qf_pattern) == FAIL
25 ! || dict_add_nr_str(dict, "text", 0L, qfp->qf_text) == FAIL
26 || dict_add_nr_str(dict, "type", 0L, buf) == FAIL
27 || dict_add_nr_str(dict, "valid", (long)qfp->qf_valid, NULL) == FAIL)
30 || dict_add_nr_str(dict, "col", (long)qfp->qf_col, NULL) == FAIL
31 || dict_add_nr_str(dict, "vcol", (long)qfp->qf_viscol, NULL) == FAIL
32 || dict_add_nr_str(dict, "nr", (long)qfp->qf_nr, NULL) == FAIL
33 ! || dict_add_nr_str(dict, "pattern", 0L,
34 ! qfp->qf_pattern == NULL ? (char_u *)"" : qfp->qf_pattern) == FAIL
35 ! || dict_add_nr_str(dict, "text", 0L,
36 ! qfp->qf_text == NULL ? (char_u *)"" : qfp->qf_text) == FAIL
37 || dict_add_nr_str(dict, "type", 0L, buf) == FAIL
38 || dict_add_nr_str(dict, "valid", (long)qfp->qf_valid, NULL) == FAIL)
40 *** ../vim-7.0.085/src/version.c Tue Sep 5 13:34:30 2006
41 --- src/version.c Tue Sep 5 15:35:40 2006
45 { /* Add new patch number below this line */
51 A vacation is a period of travel during which you find that you
52 took twice as many clothes and half as much money as you needed.
54 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
55 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
56 \\\ download, build and distribute -- http://www.A-A-P.org ///
57 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///