Remove unused code in completion processing.
authorDaniel Carl <danielcarl@gmx.de>
Mon, 7 May 2018 20:10:50 +0000 (22:10 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 7 May 2018 20:10:50 +0000 (22:10 +0200)
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

index a8acc7b..279059b 100644 (file)
--- 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) {