diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-19 09:58:42 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-19 14:58:06 +0100 |
| commit | 157264f914725f0041b08a50099834d4670dd8ce (patch) | |
| tree | 04344dddf4feff296a52dc4f8cb32aaa6e4db950 /vis.c | |
| parent | 3aa603c0e72a35bb2fb5d6b31f5a3d509f8178bd (diff) | |
| download | vis-157264f914725f0041b08a50099834d4670dd8ce.tar.gz vis-157264f914725f0041b08a50099834d4670dd8ce.tar.xz | |
vis: add infrastructure to dynamically add :set options
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -754,6 +754,10 @@ void vis_free(Vis *vis) { } map_free(vis->usercmds); map_free(vis->cmds); + if (vis->options) { + const char *name; + while (map_first(vis->options, &name) && vis_option_unregister(vis, name)); + } map_free(vis->options); map_free(vis->actions); map_free(vis->keymap); |
