mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
coverity/155501: fix bug where P_NO_DEF_EXP was ignored
This commit is contained in:
parent
4ca8a69067
commit
e66c6dd9d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user