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.4 / 7.4.205 < prev    next >
Encoding:
Internet Message Format  |  2014-03-11  |  2.9 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.205
  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.4.205
  11. Problem:    ":mksession" writes command to move to second argument while it
  12.         does not exist.  When it does exist the order might be wrong.
  13. Solution:   Use ":argadd" for each argument instead of using ":args" with a
  14.         list of names. (Nobuhiro Takasaki)
  15. Files:        src/ex_docmd.c
  16.  
  17.  
  18. *** ../vim-7.4.204/src/ex_docmd.c    2014-02-05 22:46:49.058587842 +0100
  19. --- src/ex_docmd.c    2014-03-12 21:08:35.361028825 +0100
  20. ***************
  21. *** 10381,10387 ****
  22.       }
  23.   
  24.       /* the global argument list */
  25. !     if (ses_arglist(fd, "args", &global_alist.al_ga,
  26.                   !(ssop_flags & SSOP_CURDIR), &ssop_flags) == FAIL)
  27.       return FAIL;
  28.   
  29. --- 10381,10387 ----
  30.       }
  31.   
  32.       /* the global argument list */
  33. !     if (ses_arglist(fd, "argglobal", &global_alist.al_ga,
  34.                   !(ssop_flags & SSOP_CURDIR), &ssop_flags) == FAIL)
  35.       return FAIL;
  36.   
  37. ***************
  38. *** 10955,10963 ****
  39.       char_u    *buf = NULL;
  40.       char_u    *s;
  41.   
  42. !     if (gap->ga_len == 0)
  43. !     return put_line(fd, "silent! argdel *");
  44. !     if (fputs(cmd, fd) < 0)
  45.       return FAIL;
  46.       for (i = 0; i < gap->ga_len; ++i)
  47.       {
  48. --- 10955,10963 ----
  49.       char_u    *buf = NULL;
  50.       char_u    *s;
  51.   
  52. !     if (fputs(cmd, fd) < 0 || put_eol(fd) == FAIL)
  53. !     return FAIL;
  54. !     if (put_line(fd, "silent! argdel *") == FAIL)
  55.       return FAIL;
  56.       for (i = 0; i < gap->ga_len; ++i)
  57.       {
  58. ***************
  59. *** 10974,10980 ****
  60.               s = buf;
  61.           }
  62.           }
  63. !         if (fputs(" ", fd) < 0 || ses_put_fname(fd, s, flagp) == FAIL)
  64.           {
  65.           vim_free(buf);
  66.           return FAIL;
  67. --- 10974,10982 ----
  68.               s = buf;
  69.           }
  70.           }
  71. !         if (fputs("argadd ", fd) < 0
  72. !             || ses_put_fname(fd, s, flagp) == FAIL
  73. !             || put_eol(fd) == FAIL)
  74.           {
  75.           vim_free(buf);
  76.           return FAIL;
  77. ***************
  78. *** 10982,10988 ****
  79.           vim_free(buf);
  80.       }
  81.       }
  82. !     return put_eol(fd);
  83.   }
  84.   
  85.   /*
  86. --- 10984,10990 ----
  87.           vim_free(buf);
  88.       }
  89.       }
  90. !     return OK;
  91.   }
  92.   
  93.   /*
  94. *** ../vim-7.4.204/src/version.c    2014-03-12 20:17:47.752982126 +0100
  95. --- src/version.c    2014-03-12 21:09:16.273029451 +0100
  96. ***************
  97. *** 740,741 ****
  98. --- 740,743 ----
  99.   {   /* Add new patch number below this line */
  100. + /**/
  101. +     205,
  102.   /**/
  103.  
  104. -- 
  105. A law to reduce crime states: "It is mandatory for a motorist with criminal
  106. intentions to stop at the city limits and telephone the chief of police as he
  107. is entering the town.
  108.         [real standing law in Washington, United States of America]
  109.  
  110.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  111. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  112. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  113.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  114.