4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Crash when using 'completefunc'. (Ingo Karkat)
12 Solution: Disallow entering edit() recursively when doing completion.
16 *** ../vim-7.2.223/src/edit.c 2009-05-26 11:01:43.000000000 +0200
17 --- src/edit.c 2009-07-09 18:01:49.000000000 +0200
21 * FALSE the word to be completed must be located. */
22 static int compl_started = FALSE;
24 + /* Set when doing something for completion that may call edit() recursively,
25 + * which is not allowed. */
26 + static int compl_busy = FALSE;
28 static int compl_matches = 0;
29 static char_u *compl_pattern = NULL;
30 static int compl_direction = FORWARD;
34 #ifdef FEAT_INS_EXPAND
35 /* Don't allow recursive insert mode when busy with completion. */
36 ! if (compl_started || pum_visible())
42 #ifdef FEAT_INS_EXPAND
43 /* Don't allow recursive insert mode when busy with completion. */
44 ! if (compl_started || compl_busy || pum_visible())
55 if (ins_complete(c) == FAIL)
56 compl_cont_status = 0;
59 #endif /* FEAT_INS_EXPAND */
65 } while (compl_curr_match != NULL && compl_curr_match != compl_first_match);
66 compl_first_match = compl_curr_match = NULL;
67 + compl_shown_match = NULL;
71 *** ../vim-7.2.223/src/version.c 2009-07-09 15:55:34.000000000 +0200
72 --- src/version.c 2009-07-09 18:14:16.000000000 +0200
76 { /* Add new patch number below this line */
82 hundred-and-one symptoms of being an internet addict:
83 77. The phone company asks you to test drive their new PBX system
85 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
86 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
87 \\\ download, build and distribute -- http://www.A-A-P.org ///
88 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///