|
Karsten Hopp |
019b29 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
019b29 |
Subject: Patch 7.3.598
|
|
Karsten Hopp |
019b29 |
Fcc: outbox
|
|
Karsten Hopp |
019b29 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
019b29 |
Mime-Version: 1.0
|
|
Karsten Hopp |
019b29 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
019b29 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
019b29 |
------------
|
|
Karsten Hopp |
019b29 |
|
|
Karsten Hopp |
019b29 |
Patch 7.3.598
|
|
Karsten Hopp |
019b29 |
Problem: Cannot act upon end of completion. (Taro Muraoka)
|
|
Karsten Hopp |
019b29 |
Solution: Add an autocommand event that is triggered when completion has
|
|
Karsten Hopp |
019b29 |
finished. (Idea by Florian Klein)
|
|
Karsten Hopp |
019b29 |
Files: src/edit.c, src/fileio.c, src/vim.h
|
|
Karsten Hopp |
019b29 |
|
|
Karsten Hopp |
019b29 |
|
|
Karsten Hopp |
019b29 |
*** ../vim-7.3.597/src/edit.c 2012-07-06 13:36:36.000000000 +0200
|
|
Karsten Hopp |
019b29 |
--- src/edit.c 2012-07-10 17:02:37.000000000 +0200
|
|
Karsten Hopp |
019b29 |
***************
|
|
Karsten Hopp |
019b29 |
*** 3824,3829 ****
|
|
Karsten Hopp |
019b29 |
--- 3824,3834 ----
|
|
Karsten Hopp |
019b29 |
if (want_cindent && in_cinkeys(KEY_COMPLETE, ' ', inindent(0)))
|
|
Karsten Hopp |
019b29 |
do_c_expr_indent();
|
|
Karsten Hopp |
019b29 |
#endif
|
|
Karsten Hopp |
019b29 |
+ #ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
019b29 |
+ /* Trigger the CompleteDone event to give scripts a chance to act
|
|
Karsten Hopp |
019b29 |
+ * upon the completion. */
|
|
Karsten Hopp |
019b29 |
+ apply_autocmds(EVENT_COMPLETEDONE, NULL, NULL, FALSE, curbuf);
|
|
Karsten Hopp |
019b29 |
+ #endif
|
|
Karsten Hopp |
019b29 |
}
|
|
Karsten Hopp |
019b29 |
}
|
|
Karsten Hopp |
019b29 |
|
|
Karsten Hopp |
019b29 |
*** ../vim-7.3.597/src/fileio.c 2012-06-13 14:28:16.000000000 +0200
|
|
Karsten Hopp |
019b29 |
--- src/fileio.c 2012-07-10 17:05:51.000000000 +0200
|
|
Karsten Hopp |
019b29 |
***************
|
|
Karsten Hopp |
019b29 |
*** 7643,7648 ****
|
|
Karsten Hopp |
019b29 |
--- 7643,7649 ----
|
|
Karsten Hopp |
019b29 |
{"CmdwinEnter", EVENT_CMDWINENTER},
|
|
Karsten Hopp |
019b29 |
{"CmdwinLeave", EVENT_CMDWINLEAVE},
|
|
Karsten Hopp |
019b29 |
{"ColorScheme", EVENT_COLORSCHEME},
|
|
Karsten Hopp |
019b29 |
+ {"CompleteDone", EVENT_COMPLETEDONE},
|
|
Karsten Hopp |
019b29 |
{"CursorHold", EVENT_CURSORHOLD},
|
|
Karsten Hopp |
019b29 |
{"CursorHoldI", EVENT_CURSORHOLDI},
|
|
Karsten Hopp |
019b29 |
{"CursorMoved", EVENT_CURSORMOVED},
|
|
Karsten Hopp |
019b29 |
*** ../vim-7.3.597/src/vim.h 2012-07-10 13:41:09.000000000 +0200
|
|
Karsten Hopp |
019b29 |
--- src/vim.h 2012-07-10 17:06:24.000000000 +0200
|
|
Karsten Hopp |
019b29 |
***************
|
|
Karsten Hopp |
019b29 |
*** 1241,1246 ****
|
|
Karsten Hopp |
019b29 |
--- 1241,1247 ----
|
|
Karsten Hopp |
019b29 |
EVENT_CMDWINENTER, /* after entering the cmdline window */
|
|
Karsten Hopp |
019b29 |
EVENT_CMDWINLEAVE, /* before leaving the cmdline window */
|
|
Karsten Hopp |
019b29 |
EVENT_COLORSCHEME, /* after loading a colorscheme */
|
|
Karsten Hopp |
019b29 |
+ EVENT_COMPLETEDONE, /* after finishing insert complete */
|
|
Karsten Hopp |
019b29 |
EVENT_FILEAPPENDPOST, /* after appending to a file */
|
|
Karsten Hopp |
019b29 |
EVENT_FILEAPPENDPRE, /* before appending to a file */
|
|
Karsten Hopp |
019b29 |
EVENT_FILEAPPENDCMD, /* append to a file using command */
|
|
Karsten Hopp |
019b29 |
*** ../vim-7.3.597/src/version.c 2012-07-10 16:49:08.000000000 +0200
|
|
Karsten Hopp |
019b29 |
--- src/version.c 2012-07-10 17:08:41.000000000 +0200
|
|
Karsten Hopp |
019b29 |
***************
|
|
Karsten Hopp |
019b29 |
*** 716,717 ****
|
|
Karsten Hopp |
019b29 |
--- 716,719 ----
|
|
Karsten Hopp |
019b29 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
019b29 |
+ /**/
|
|
Karsten Hopp |
019b29 |
+ 598,
|
|
Karsten Hopp |
019b29 |
/**/
|
|
Karsten Hopp |
019b29 |
|
|
Karsten Hopp |
019b29 |
--
|
|
Karsten Hopp |
019b29 |
Laughing helps. It's like jogging on the inside.
|
|
Karsten Hopp |
019b29 |
|
|
Karsten Hopp |
019b29 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
019b29 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
019b29 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
019b29 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|