diff src/ex_getln.c @ 13142:59a16624400a v8.0.1445

patch 8.0.1445: cannot act on edits in the command line commit https://github.com/vim/vim/commit/153b704e20f9c269450a7d3ea8cafcf942579ab7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 31 15:48:32 2018 +0100 patch 8.0.1445: cannot act on edits in the command line Problem: Cannot act on edits in the command line. Solution: Add the CmdlineChanged autocommand event. (xtal8, closes https://github.com/vim/vim/issues/2603, closes #2524)
author Christian Brabandt <cb@256bit.org>
date Wed, 31 Jan 2018 16:00:07 +0100
parents fe7d576a3d3f
children ac42c4b11dbc
line wrap: on
line diff
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1951,6 +1951,11 @@ cmdline_not_changed:
 #endif
 
 cmdline_changed:
+#ifdef FEAT_AUTOCMD
+	/* Trigger CmdlineChanged autocommands. */
+	trigger_cmd_autocmd(cmdline_type, EVENT_CMDLINECHANGED);
+#endif
+
 #ifdef FEAT_SEARCH_EXTRA
 	/*
 	 * 'incsearch' highlighting.