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.3 / 7.3.1302 < prev    next >
Encoding:
Internet Message Format  |  2013-07-02  |  3.6 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.1302
  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.1302
  11. Problem:    Test 17 fails on MS-Windows.  Includes line break in file name
  12.         everywhere.
  13. Solution:   Fix 'fileformat'. Omit CR-LF from a line read from an included
  14.         file.
  15. Files:        src/search.c, src/testdir/test17.in, src/testdir/test17.ok
  16.  
  17.  
  18. *** ../vim-7.3.1301/src/search.c    2013-06-30 14:46:50.000000000 +0200
  19. --- src/search.c    2013-07-03 22:18:52.000000000 +0200
  20. ***************
  21. *** 4825,4831 ****
  22.           if (inc_opt != NULL && strstr((char *)inc_opt, "\\zs") != NULL)
  23.           /* Use text from '\zs' to '\ze' (or end) of 'include'. */
  24.           new_fname = find_file_name_in_path(incl_regmatch.startp[0],
  25. !                   (int)(incl_regmatch.endp[0] - incl_regmatch.startp[0]),
  26.                    FNAME_EXP|FNAME_INCL|FNAME_REL, 1L, p_fname);
  27.           else
  28.           /* Use text after match with 'include'. */
  29. --- 4825,4831 ----
  30.           if (inc_opt != NULL && strstr((char *)inc_opt, "\\zs") != NULL)
  31.           /* Use text from '\zs' to '\ze' (or end) of 'include'. */
  32.           new_fname = find_file_name_in_path(incl_regmatch.startp[0],
  33. !                (int)(incl_regmatch.endp[0] - incl_regmatch.startp[0]),
  34.                    FNAME_EXP|FNAME_INCL|FNAME_REL, 1L, p_fname);
  35.           else
  36.           /* Use text after match with 'include'. */
  37. ***************
  38. *** 5352,5358 ****
  39. --- 5352,5366 ----
  40.           depth_displayed = depth;
  41.       }
  42.       if (depth >= 0)        /* we could read the line */
  43. +     {
  44.           files[depth].lnum++;
  45. +         /* Remove any CR and LF from the line. */
  46. +         i = (int)STRLEN(line);
  47. +         if (i > 0 && line[i - 1] == '\n')
  48. +         line[--i] = NUL;
  49. +         if (i > 0 && line[i - 1] == '\r')
  50. +         line[--i] = NUL;
  51. +     }
  52.       else if (!already)
  53.       {
  54.           if (++lnum > end_lnum)
  55. *** ../vim-7.3.1301/src/testdir/test17.in    2013-06-19 21:17:26.000000000 +0200
  56. --- src/testdir/test17.in    2013-07-03 22:28:23.000000000 +0200
  57. ***************
  58. *** 33,38 ****
  59. --- 33,39 ----
  60.   :"  > nmake -f Make_dos.mak test17.out
  61.   :w! test.out
  62.   gf
  63. + :set ff=unix
  64.   :w! test.out
  65.   :brewind
  66.   ENDTEST
  67. ***************
  68. *** 130,138 ****
  69.   :checkpath!
  70.   :redir END
  71.   :brewind
  72. ! :" replace "\" to "/" for Windows
  73.   :e test.out
  74.   :%s#\\#/#g
  75.   :w
  76.   :q
  77.   ENDTEST
  78. --- 131,140 ----
  79.   :checkpath!
  80.   :redir END
  81.   :brewind
  82. ! :" change "\" to "/" for Windows and fix 'fileformat'
  83.   :e test.out
  84.   :%s#\\#/#g
  85. + :set ff&
  86.   :w
  87.   :q
  88.   ENDTEST
  89. *** ../vim-7.3.1301/src/testdir/test17.ok    2012-07-25 13:46:25.000000000 +0200
  90. --- src/testdir/test17.ok    2013-07-03 22:19:18.000000000 +0200
  91. ***************
  92. *** 30,33 ****
  93.     Xdir1/dir2/bar.c -->
  94.       Xdir1/dir2/baz.c
  95.       Xdir1/dir2/baz.c -->
  96. !       foo.c^@  (Already listed)
  97. --- 30,33 ----
  98.     Xdir1/dir2/bar.c -->
  99.       Xdir1/dir2/baz.c
  100.       Xdir1/dir2/baz.c -->
  101. !       foo.c  (Already listed)
  102. *** ../vim-7.3.1301/src/version.c    2013-07-03 21:19:00.000000000 +0200
  103. --- src/version.c    2013-07-03 22:20:30.000000000 +0200
  104. ***************
  105. *** 730,731 ****
  106. --- 730,733 ----
  107.   {   /* Add new patch number below this line */
  108. + /**/
  109. +     1302,
  110.   /**/
  111.  
  112. -- 
  113.        [Autumn changed into Winter ... Winter changed into Spring ...  Spring
  114.        changed back into Autumn and Autumn gave Winter and Spring a miss and
  115.        went straight on into Summer ...  Until one day ...]
  116.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  117.  
  118.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  119. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  120. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  121.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  122.