diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-08-12 12:00:36 +0200 |
---|---|---|
committer | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-10-30 10:21:18 +0100 |
commit | 13841a56b4b4916a2f18e66f97cb6f5e55d40e53 (patch) | |
tree | d537cb37ba929552d8b2156288dac602458be27a /src/nvim/ex_getln.c | |
parent | 6143cfdeec4e67cdf73879b92fe2a80b5b36bc1b (diff) | |
download | rneovim-13841a56b4b4916a2f18e66f97cb6f5e55d40e53.tar.gz rneovim-13841a56b4b4916a2f18e66f97cb6f5e55d40e53.tar.bz2 rneovim-13841a56b4b4916a2f18e66f97cb6f5e55d40e53.zip |
Incsubsitution feature
Originally implemented by
* Clement0
* DesbyP
* aym7
* Adrey06
* Robinhola
in #4811. Major reworkings and bug
fixes by
* bfredl
Most tests suggested by ZyX-l, suggestions for improvements by oni-link.
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index e525c949bd..d1a2ab8bcf 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -1591,6 +1591,10 @@ static int command_line_changed(CommandLineState *s) msg_starthere(); redrawcmdline(); s->did_incsearch = true; + } else if (*p_ics != NUL && s->firstc == ':' && is_live(ccline.cmdbuff)) { + // compute a live action + do_cmdline(ccline.cmdbuff, NULL, NULL, DOCMD_KEEPLINE|DOCMD_LIVE_PREVIEW); + redrawcmdline(); } if (cmdmsg_rl || (p_arshape && !p_tbidi && enc_utf8)) { |