From f3e8ca3bf50c5945ecfd801bf6eb49ffea5bbe0e Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 6 Nov 2016 20:48:12 +0100 Subject: 'inccommand': preserve 'modified' During the live preview, the buffer-local 'modified' flag should not be changed. --- src/nvim/ex_getln.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/ex_getln.c') diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 04e7d2fbcf..17693ecfc8 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -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') -- cgit