diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-12-05 14:43:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-12-05 14:43:02 +0100 |
commit | 15d55dec03eca3ae87d245f23fad086a501d7f07 (patch) | |
tree | e382605f6c00c8df8d11107309d805c58f31fb2b /src/option.c | |
parent | 862cfa356dfd0d8a6e31e7e0060098889c8d83b9 (diff) | |
download | vim-git-15d55dec03eca3ae87d245f23fad086a501d7f07.tar.gz |
updated for version 7.3.745v7.3.745
Problem: Automatically setting 'ttymouse' doesn't work.
Solution: Reset the "option was set" flag when using the default.
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index 2ab077063..d8eb314d4 100644 --- a/src/option.c +++ b/src/option.c @@ -11179,6 +11179,19 @@ option_was_set(name) } /* + * Reset the flag indicating option "name" was set. + */ + void +reset_option_was_set(name) + char_u *name; +{ + int idx = findoption(name); + + if (idx >= 0) + options[idx].flags &= ~P_WAS_SET; +} + +/* * compatible_set() - Called when 'compatible' has been set or unset. * * When 'compatible' set: Set all relevant options (those that have the P_VIM) |