From 69cf48a0cffa411c20e21009839bd4fa2d19a226 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Mon, 7 May 2018 22:10:50 +0200 Subject: [PATCH] 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. --- src/ex.c | 7 ------- 1 file changed, 7 deletions(-) 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) { -- 2.20.1