summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-10-29 04:43:04 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-10-29 04:43:04 +0000
commitebacb4edce50ef418e46b090288223adea89b2d0 (patch)
tree189aec495e8ed108e55a73e617ca9663d8d89cfd /lib/vty.c
parentbec37ba594856e0fac7fd20baa08d50d0e3fe86a (diff)
lib: Various minor improvements & bugfixes to CLI backend
- Do not allow tab-completion on anything except words - Rewrite cmd_make_strvec to use strsep - Remove a few trailing whitespaces - Remove cmd_complete_command_lib Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 78bf0e720d..53a04851d5 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -923,7 +923,7 @@ vty_complete_command (struct vty *vty)
if (isspace ((int) vty->buf[vty->length - 1]))
vector_set (vline, NULL);
- matched = cmd_complete_command_lib (vline, vty, &ret, 1);
+ matched = cmd_complete_command (vline, vty, &ret);
cmd_free_strvec (vline);