Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Settings class more flexible, less brittle
I hadn't touched this class for about 4 years, and this morning had to add another setting to it in order to fix a bug (see commit 2861dc1). With a more flexible design, I could have left it untouched. This commit implements that design, teaching the settings class to fully mediate between the caller who wants to save/restore some settings, and Vim. It records the settings that are to be changed, makes the changes, and can restore the settings by "replaying" the recorded settings. Signed-off-by: Wincent Colaiuta <win@wincent.com>
- Loading branch information
Showing
2 changed files
with
32 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters