diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-04-21 09:47:00 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-04-21 10:01:40 +0200 |
| commit | 59b883431996e4d52d74d8926bc48243ec9dc8be (patch) | |
| tree | 4e0cc821aff1d650d9d91f2005333c07b5096046 /vis.c | |
| parent | 793f1e212bb08d2edba172cd32d0ef8cc43a1aeb (diff) | |
| download | vis-59b883431996e4d52d74d8926bc48243ec9dc8be.tar.gz vis-59b883431996e4d52d74d8926bc48243ec9dc8be.tar.xz | |
vis: do not lazy allocate :-commands
The built in commands should always be available.
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -364,6 +364,8 @@ Vis *vis_new(Ui *ui, VisEvent *event) { goto err; if (!(vis->keymap = map_new())) goto err; + if (!sam_init(vis)) + goto err; vis->mode_prev = vis->mode = &vis_modes[VIS_MODE_NORMAL]; vis->event = event; if (event && event->vis_init) |
