'inccommand': preserve 'modified'

During the live preview, the buffer-local 'modified' flag
should not be changed.
This commit is contained in:
Justin M. Keyes
2016-11-06 20:48:12 +01:00
parent ff6ec703d5
commit f3e8ca3bf5
3 changed files with 32 additions and 5 deletions

View File

@@ -1594,6 +1594,7 @@ static int command_line_changed(CommandLineState *s)
} else if (s->firstc == ':'
&& KeyTyped // only if interactive
&& *p_icm != NUL // 'inccommand' is set
&& curbuf->b_p_ma // buffer is modifiable
&& cmdline_star == 0 // not typing a password
&& cmd_is_live(ccline.cmdbuff)) {
// process a "live" command ('inccommand')