]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.598
- up to 7.3.600
[packages/vim.git] / 7.3.598
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.598
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.598
11 Problem:    Cannot act upon end of completion. (Taro Muraoka)
12 Solution:   Add an autocommand event that is triggered when completion has
13             finished. (Idea by Florian Klein)
14 Files:      src/edit.c, src/fileio.c, src/vim.h
15
16
17 *** ../vim-7.3.597/src/edit.c   2012-07-06 13:36:36.000000000 +0200
18 --- src/edit.c  2012-07-10 17:02:37.000000000 +0200
19 ***************
20 *** 3824,3829 ****
21 --- 3824,3834 ----
22             if (want_cindent && in_cinkeys(KEY_COMPLETE, ' ', inindent(0)))
23                 do_c_expr_indent();
24   #endif
25 + #ifdef FEAT_AUTOCMD
26 +           /* Trigger the CompleteDone event to give scripts a chance to act
27 +            * upon the completion. */
28 +           apply_autocmds(EVENT_COMPLETEDONE, NULL, NULL, FALSE, curbuf);
29 + #endif
30         }
31       }
32   
33 *** ../vim-7.3.597/src/fileio.c 2012-06-13 14:28:16.000000000 +0200
34 --- src/fileio.c        2012-07-10 17:05:51.000000000 +0200
35 ***************
36 *** 7643,7648 ****
37 --- 7643,7649 ----
38       {"CmdwinEnter",   EVENT_CMDWINENTER},
39       {"CmdwinLeave",   EVENT_CMDWINLEAVE},
40       {"ColorScheme",   EVENT_COLORSCHEME},
41 +     {"CompleteDone",  EVENT_COMPLETEDONE},
42       {"CursorHold",    EVENT_CURSORHOLD},
43       {"CursorHoldI",   EVENT_CURSORHOLDI},
44       {"CursorMoved",   EVENT_CURSORMOVED},
45 *** ../vim-7.3.597/src/vim.h    2012-07-10 13:41:09.000000000 +0200
46 --- src/vim.h   2012-07-10 17:06:24.000000000 +0200
47 ***************
48 *** 1241,1246 ****
49 --- 1241,1247 ----
50       EVENT_CMDWINENTER,                /* after entering the cmdline window */
51       EVENT_CMDWINLEAVE,                /* before leaving the cmdline window */
52       EVENT_COLORSCHEME,                /* after loading a colorscheme */
53 +     EVENT_COMPLETEDONE,               /* after finishing insert complete */
54       EVENT_FILEAPPENDPOST,     /* after appending to a file */
55       EVENT_FILEAPPENDPRE,      /* before appending to a file */
56       EVENT_FILEAPPENDCMD,      /* append to a file using command */
57 *** ../vim-7.3.597/src/version.c        2012-07-10 16:49:08.000000000 +0200
58 --- src/version.c       2012-07-10 17:08:41.000000000 +0200
59 ***************
60 *** 716,717 ****
61 --- 716,719 ----
62   {   /* Add new patch number below this line */
63 + /**/
64 +     598,
65   /**/
66
67 -- 
68 Laughing helps. It's like jogging on the inside.
69
70  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
71 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
72 \\\  an exciting new programming language -- http://www.Zimbu.org        ///
73  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.049991 seconds and 3 git commands to generate.