]>
Commit | Line | Data |
---|---|---|
03d4279c AM |
1 | To: vim_dev@googlegroups.com |
2 | Subject: Patch 7.3.418 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.3.418 | |
11 | Problem: When a user complete function returns -1 an error message is | |
12 | given. | |
13 | Solution: When -2 is returned stop completion silently. (Yasuhiro Matsumoto) | |
14 | Files: src/edit.c | |
15 | ||
16 | ||
17 | *** ../vim-7.3.417/src/edit.c 2012-01-20 14:32:22.000000000 +0100 | |
18 | --- src/edit.c 2012-01-26 18:32:23.000000000 +0100 | |
19 | *************** | |
20 | *** 5189,5194 **** | |
21 | --- 5189,5199 ---- | |
22 | return FAIL; | |
23 | } | |
24 | ||
25 | + /* Return value -2 means the user complete function wants to | |
26 | + * cancel the complete without an error. */ | |
27 | + if (col == -2) | |
28 | + return FAIL; | |
29 | + | |
30 | /* | |
31 | * Reset extended parameters of completion, when start new | |
32 | * completion. | |
33 | *** ../vim-7.3.417/src/version.c 2012-01-26 18:58:13.000000000 +0100 | |
34 | --- src/version.c 2012-01-26 18:42:14.000000000 +0100 | |
35 | *************** | |
36 | *** 716,717 **** | |
37 | --- 716,719 ---- | |
38 | { /* Add new patch number below this line */ | |
39 | + /**/ | |
40 | + 418, | |
41 | /**/ | |
42 | ||
43 | -- | |
44 | If someone questions your market projections, simply point out that your | |
45 | target market is "People who are nuts" and "People who will buy any damn | |
46 | thing". Nobody is going to tell you there aren't enough of those people | |
47 | to go around. | |
48 | (Scott Adams - The Dilbert principle) | |
49 | ||
50 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
51 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
52 | \\\ an exciting new programming language -- http://www.Zimbu.org /// | |
53 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |