aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSander Bosma <sanderbosma@gmail.com>2017-03-11 16:26:16 +0100
committerSander Bosma <sanderbosma@gmail.com>2017-03-11 19:09:55 +0100
commite66c6dd9d5518e10eabe02b483872ab0b23174f5 (patch)
tree13a4a43c799e36354601257c78890e8bd9831ab8 /src
parent4ca8a6906735c47ce86bc5d34152b86733706898 (diff)
downloadrneovim-e66c6dd9d5518e10eabe02b483872ab0b23174f5.tar.gz
rneovim-e66c6dd9d5518e10eabe02b483872ab0b23174f5.tar.bz2
rneovim-e66c6dd9d5518e10eabe02b483872ab0b23174f5.zip
coverity/155501: fix bug where P_NO_DEF_EXP was ignored
Diffstat (limited to 'src')
-rw-r--r--src/nvim/option.c2
1 files changed, 1 insertions, 1 deletions
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;