Mercurial > vim
diff src/option.c @ 3980:aab4b29520e7 v7.3.745
updated for version 7.3.745
Problem: Automatically setting 'ttymouse' doesn't work.
Solution: Reset the "option was set" flag when using the default.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 05 Dec 2012 14:43:02 +0100 |
parents | f69321485951 |
children | d179a8eff9d7 |
line wrap: on
line diff
--- 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)