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

Patch 6.1.122

Expand Messages
  • Bram Moolenaar
    Patch 6.1.122 Problem: :file name creates a new buffer to hold the old buffer name, which becomes the alternate file. This buffer is unexpectedly listed.
    Message 1 of 1 , Jul 4, 2002
    • 0 Attachment
      Patch 6.1.122
      Problem: ":file name" creates a new buffer to hold the old buffer name,
      which becomes the alternate file. This buffer is unexpectedly
      listed.
      Solution: Create the buffer for the alternate name unlisted.
      Files: src/ex_cmds.c


      *** ../vim61.121/src/ex_cmds.c Sun Jun 23 15:00:56 2002
      --- src/ex_cmds.c Mon Jun 24 21:49:43 2002
      ***************
      *** 1975,1982 ****
      #endif
      /*
      * The name of the current buffer will be changed.
      ! * A new buffer entry needs to be made to hold the old
      ! * file name, which will become the alternate file name.
      */
      fname = curbuf->b_ffname;
      sfname = curbuf->b_sfname;
      --- 1975,1982 ----
      #endif
      /*
      * The name of the current buffer will be changed.
      ! * A new (unlisted) buffer entry needs to be made to hold the old file
      ! * name, which will become the alternate file name.
      */
      fname = curbuf->b_ffname;
      sfname = curbuf->b_sfname;
      ***************
      *** 1990,1996 ****
      return;
      }
      curbuf->b_flags |= BF_NOTEDITED;
      ! buf = buflist_new(fname, xfname, curwin->w_cursor.lnum, BLN_LISTED);
      if (buf != NULL)
      curwin->w_alt_fnum = buf->b_fnum;
      vim_free(fname);
      --- 1990,1996 ----
      return;
      }
      curbuf->b_flags |= BF_NOTEDITED;
      ! buf = buflist_new(fname, xfname, curwin->w_cursor.lnum, 0);
      if (buf != NULL)
      curwin->w_alt_fnum = buf->b_fnum;
      vim_free(fname);
      *** ../vim61.121/src/version.c Thu Jul 4 20:48:34 2002
      --- src/version.c Thu Jul 4 20:53:14 2002
      ***************
      *** 608,609 ****
      --- 608,611 ----
      { /* Add new patch number below this line */
      + /**/
      + 122,
      /**/

      --
      ARTHUR: What does it say?
      BROTHER MAYNARD: It reads ... "Here may be found the last words of Joseph of
      Aramathea." "He who is valorous and pure of heart may find
      the Holy Grail in the aaaaarrrrrrggghhh..."
      ARTHUR: What?
      BROTHER MAYNARD: "The Aaaaarrrrrrggghhh..."
      "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
      \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
      \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
    Your message has been successfully submitted and would be delivered to recipients shortly.