aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-21 09:47:00 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-21 10:01:40 +0200
commit59b883431996e4d52d74d8926bc48243ec9dc8be (patch)
tree4e0cc821aff1d650d9d91f2005333c07b5096046 /vis.c
parent793f1e212bb08d2edba172cd32d0ef8cc43a1aeb (diff)
downloadvis-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis.c b/vis.c
index 8f4155e..388bc41 100644
--- a/vis.c
+++ b/vis.c
@@ -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)