From: Daniel Carl Date: Mon, 7 May 2018 20:10:50 +0000 (+0200) Subject: Remove unused code in completion processing. X-Git-Url: https://git.owens.tech/dummy.html/dummy.html/git?a=commitdiff_plain;h=69cf48a0cffa411c20e21009839bd4fa2d19a226;p=vimb.git Remove unused code in completion processing. There is no code calling complete(..., 0) which was used in early days to stop the completion. So remove the code to handle none given direction. --- diff --git a/src/ex.c b/src/ex.c index a8acc7b..279059b 100644 --- a/src/ex.c +++ b/src/ex.c @@ -1142,13 +1142,6 @@ static gboolean complete(Client *c, short direction) gboolean sort = TRUE; GtkListStore *store; - /* if direction is 0 stop the completion */ - if (!direction) { - completion_clean(c); - - return TRUE; - } - input = vb_input_get_text(c); /* if completion was already started move to the next/prev item */ if (c->mode->flags & FLAG_COMPLETION) {