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

Patch 6.1.208

Expand Messages
  • Bram Moolenaar
    Patch 6.1.208 Problem: Can t use the buffer number from the Python interface. Solution: Add buffer.number. (Michal Vitecek) Files: src/if_python.c ...
    Message 1 of 1 , Oct 6, 2002
    View Source
    • 0 Attachment
      Patch 6.1.208
      Problem: Can't use the buffer number from the Python interface.
      Solution: Add buffer.number. (Michal Vitecek)
      Files: src/if_python.c


      *** ../vim61.207/src/if_python.c Thu Aug 22 21:41:19 2002
      --- src/if_python.c Tue Oct 1 20:55:42 2002
      ***************
      *** 1239,1246 ****

      if (strcmp(name, "name") == 0)
      return Py_BuildValue("s",this->buf->b_ffname);
      else if (strcmp(name,"__members__") == 0)
      ! return Py_BuildValue("[s]", "name");
      else
      return Py_FindMethod(BufferMethods, self, name);
      }
      --- 1239,1248 ----

      if (strcmp(name, "name") == 0)
      return Py_BuildValue("s",this->buf->b_ffname);
      + else if (strcmp(name, "number") == 0)
      + return Py_BuildValue("i",this->buf->b_fnum);
      else if (strcmp(name,"__members__") == 0)
      ! return Py_BuildValue("[ss]", "name", "number");
      else
      return Py_FindMethod(BufferMethods, self, name);
      }
      *** ../vim61.207/src/version.c Sun Oct 6 18:24:17 2002
      --- src/version.c Sun Oct 6 18:26:19 2002
      ***************
      *** 608,609 ****
      --- 608,611 ----
      { /* Add new patch number below this line */
      + /**/
      + 208,
      /**/

      --
      Birthdays are healthy. The more you have them, the longer you live.

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\
      \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
      \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.