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