Loading ...
Sorry, an error occurred while loading the content.

Patch 7.3.641

Expand Messages
  • Bram Moolenaar
    Patch 7.3.641 Problem: :mkview uses :normal instead of :normal! for folds. (Dan) Solution: Add the bang. (Christian Brabandt) Files: src/fold.c
    Message 1 of 1 , Aug 29, 2012
    • 0 Attachment
      Patch 7.3.641
      Problem: ":mkview" uses ":normal" instead of ":normal!" for folds. (Dan)
      Solution: Add the bang. (Christian Brabandt)
      Files: src/fold.c


      *** ../vim-7.3.640/src/fold.c 2012-08-08 18:01:00.000000000 +0200
      --- src/fold.c 2012-08-29 15:17:39.000000000 +0200
      ***************
      *** 3373,3379 ****
      /* open nested folds while this fold is open */
      if (fprintf(fd, "%ld", fp->fd_top + off) < 0
      || put_eol(fd) == FAIL
      ! || put_line(fd, "normal zo") == FAIL)
      return FAIL;
      if (put_foldopen_recurse(fd, wp, &fp->fd_nested,
      off + fp->fd_top)
      --- 3373,3379 ----
      /* open nested folds while this fold is open */
      if (fprintf(fd, "%ld", fp->fd_top + off) < 0
      || put_eol(fd) == FAIL
      ! || put_line(fd, "normal! zo") == FAIL)
      return FAIL;
      if (put_foldopen_recurse(fd, wp, &fp->fd_nested,
      off + fp->fd_top)
      ***************
      *** 3417,3423 ****
      {
      if (fprintf(fd, "%ld", fp->fd_top + off) < 0
      || put_eol(fd) == FAIL
      ! || fprintf(fd, "normal z%c",
      fp->fd_flags == FD_CLOSED ? 'c' : 'o') < 0
      || put_eol(fd) == FAIL)
      return FAIL;
      --- 3417,3423 ----
      {
      if (fprintf(fd, "%ld", fp->fd_top + off) < 0
      || put_eol(fd) == FAIL
      ! || fprintf(fd, "normal! z%c",
      fp->fd_flags == FD_CLOSED ? 'c' : 'o') < 0
      || put_eol(fd) == FAIL)
      return FAIL;
      *** ../vim-7.3.640/src/version.c 2012-08-29 14:23:06.000000000 +0200
      --- src/version.c 2012-08-29 15:18:26.000000000 +0200
      ***************
      *** 721,722 ****
      --- 721,724 ----
      { /* Add new patch number below this line */
      + /**/
      + 641,
      /**/

      --
      You cannot propel yourself forward by patting yourself on the back.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.