1
0
forked from aniani/vim

patch 8.1.0386: cannot test with non-default option value

Problem:    Cannot test with non-default option value.
Solution:   Add test_option_not_set().
This commit is contained in:
Bram Moolenaar
2018-09-13 20:31:54 +02:00
parent c91c500348
commit fe8ef98dd1
5 changed files with 39 additions and 3 deletions

View File

@@ -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;
}
/*