Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
3979:538ff809ae53 | 3980:aab4b29520e7 |
---|---|
11177 return TRUE; | 11177 return TRUE; |
11178 return FALSE; | 11178 return FALSE; |
11179 } | 11179 } |
11180 | 11180 |
11181 /* | 11181 /* |
11182 * Reset the flag indicating option "name" was set. | |
11183 */ | |
11184 void | |
11185 reset_option_was_set(name) | |
11186 char_u *name; | |
11187 { | |
11188 int idx = findoption(name); | |
11189 | |
11190 if (idx >= 0) | |
11191 options[idx].flags &= ~P_WAS_SET; | |
11192 } | |
11193 | |
11194 /* | |
11182 * compatible_set() - Called when 'compatible' has been set or unset. | 11195 * compatible_set() - Called when 'compatible' has been set or unset. |
11183 * | 11196 * |
11184 * When 'compatible' set: Set all relevant options (those that have the P_VIM) | 11197 * When 'compatible' set: Set all relevant options (those that have the P_VIM) |
11185 * flag) to a Vi compatible value. | 11198 * flag) to a Vi compatible value. |
11186 * When 'compatible' is unset: Set all options that have a different default | 11199 * When 'compatible' is unset: Set all options that have a different default |