diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-09-13 20:31:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-09-13 20:31:54 +0200 |
commit | fe8ef98dd1d0b7d296d7db29b1e2fd1b56b788de (patch) | |
tree | e59e23d496796a07ef980df1b99cf26a58d0309f /src/option.c | |
parent | c91c500348f3f026a06d1c3565b380d86b8c55ee (diff) | |
download | vim-git-fe8ef98dd1d0b7d296d7db29b1e2fd1b56b788de.tar.gz |
patch 8.1.0386: cannot test with non-default option valuev8.1.0386
Problem: Cannot test with non-default option value.
Solution: Add test_option_not_set().
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c index f47549d72..818e6911c 100644 --- a/src/option.c +++ b/src/option.c @@ -12480,13 +12480,17 @@ option_was_set(char_u *name) /* * Reset the flag indicating option "name" was set. */ - void + int reset_option_was_set(char_u *name) { int idx = findoption(name); if (idx >= 0) + { options[idx].flags &= ~P_WAS_SET; + return OK; + } + return FAIL; } /* |