home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.0 / 7.0.086 < prev    next >
Encoding:
Internet Message Format  |  2006-09-04  |  2.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.0.086
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.0.086
  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.
  14. Files:        src/quickfix.c
  15.  
  16.  
  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
  19. ***************
  20. *** 3426,3433 ****
  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)
  28.           return FAIL;
  29. --- 3426,3435 ----
  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)
  39.           return 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
  42. ***************
  43. *** 668,669 ****
  44. --- 668,671 ----
  45.   {   /* Add new patch number below this line */
  46. + /**/
  47. +     86,
  48.   /**/
  49.  
  50. -- 
  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.
  53.  
  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    ///
  58.