From e66c6dd9d5518e10eabe02b483872ab0b23174f5 Mon Sep 17 00:00:00 2001 From: Sander Bosma Date: Sat, 11 Mar 2017 16:26:16 +0100 Subject: coverity/155501: fix bug where P_NO_DEF_EXP was ignored --- src/nvim/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/option.c b/src/nvim/option.c index 8990b59f57..4a8ca741db 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -1490,7 +1490,7 @@ do_set ( new_value_alloced = true; if (newval == NULL) { newval = empty_option; - } else if (!(options[opt_idx].flags | P_NO_DEF_EXP)) { + } else if (!(options[opt_idx].flags & P_NO_DEF_EXP)) { s = option_expand(opt_idx, newval); if (s == NULL) { s = newval; -- cgit