]> git.pld-linux.org Git - packages/vim.git/blob - 5.7.007
- offcial vim patches from ftp://ftp.home.vim.org/pub/vim/patches.
[packages/vim.git] / 5.7.007
1 To: vim-dev@vim.org
2 Subject: Patch 5.7.007
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 ------------
6
7 Patch 5.7.007
8 Problem:    Python: Crash when using the current buffer twice.
9 Solution:   Increase the reference count for buffer and window objects.
10             (Johannes Zellner)
11 Files:      src/if_python.c
12
13
14 *** ../vim-5.7.6/src/if_python.c        Sat Sep 11 20:19:46 1999
15 --- src/if_python.c     Sat Aug  5 16:20:51 2000
16 ***************
17 *** 897,903 ****
18 --- 897,906 ----
19       BufferObject *self;
20   
21       if (buf->python_ref)
22 +     {
23         self = buf->python_ref;
24 +       Py_INCREF(self);
25 +     }
26       else
27       {
28         self = PyObject_NEW(BufferObject, &BufferType);
29 ***************
30 *** 1367,1373 ****
31 --- 1370,1379 ----
32       WindowObject *self;
33   
34       if (win->python_ref)
35 +     {
36         self = win->python_ref;
37 +       Py_INCREF(self);
38 +     }
39       else
40       {
41         self = PyObject_NEW(WindowObject, &WindowType);
42 *** ../vim-5.7.6/src/version.c  Sat Aug  5 15:47:11 2000
43 --- src/version.c       Sat Aug  5 16:20:45 2000
44 ***************
45 *** 439,440 ****
46 --- 439,442 ----
47   {   /* Add new patch number below this line */
48 + /**/
49 +     7,
50   /**/
51
52 -- 
53 hundred-and-one symptoms of being an internet addict:
54 127. You bring your laptop and cellular phone to church.
55
56 ///  Bram Moolenaar     Bram@moolenaar.net     http://www.moolenaar.net  \\\
57 \\\  Vim: http://www.vim.org      ICCF Holland: http://iccf-holland.org  ///
This page took 0.032827 seconds and 3 git commands to generate.