summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-01-31 15:48:32 +0100
committerBram Moolenaar <Bram@vim.org>2018-01-31 15:48:32 +0100
commit153b704e20f9c269450a7d3ea8cafcf942579ab7 (patch)
treeab9438b2370889b2f49320fae762525be1ad3562 /src/ex_getln.c
parentec0557f08b2660118eaedb94471e5ab0f87cf2a3 (diff)
patch 8.0.1445: cannot act on edits in the command linev8.0.1445
Problem: Cannot act on edits in the command line. Solution: Add the CmdlineChanged autocommand event. (xtal8, closes #2603, closes #2524)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 421c6b7d58..837d29998f 100644
--- 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.