vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit a7eef88b6b945ade886c5ba1e3369e1c61acba7a
parent fb5c4631f9a7f35a4f9870d1bea9b6cf20633bb5
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 19 Sep 2015 16:39:24 +0200

vis: remove now unused common_prefix mode attribute

Diffstat:
Mconfig.def.h | 1-
Meditor.h | 1-
2 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -513,7 +513,6 @@ static Mode vis_modes[] = { }, [VIS_MODE_TEXTOBJ] = { .name = "TEXTOBJ", - .common_prefix = true, .parent = &vis_modes[VIS_MODE_MOVE], .default_bindings = vis_textobjs, }, diff --git a/editor.h b/editor.h @@ -43,7 +43,6 @@ struct Mode { KeyBinding *default_bindings; const char *name; /* descriptive, user facing name of the mode */ bool isuser; /* whether this is a user or internal mode */ - bool common_prefix; /* whether the first key in this mode is always the same */ void (*enter)(Mode *old); /* called right before the mode becomes active */ void (*leave)(Mode *new); /* called right before the mode becomes inactive */ void (*input)(const char*, size_t); /* called whenever a key is not found in this mode and all its parent modes */