vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 7c861770a09057df754f125d1f63e654f8bc29cd parent 9686bd3280e1b8b61ee4370a6008771b4eb64379 Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 14 Dec 2016 21:34:04 +0100 vis: remove useless NULL check The very first thing we do if that check is false, is return from the function. Diffstat:
| M | vis.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vis.c b/vis.c @@ -40,7 +40,7 @@ bool vis_event_emit(Vis *vis, enum VisEvents id, ...) { if (!vis->initialized) { vis->initialized = true; vis->ui->init(vis->ui, vis); - if (vis->event && vis->event->init) + if (vis->event->init) vis->event->init(vis); }