mirror_frr/vtysh
Christian Franke 67e7a2127c vtysh: don't append superflous spaces (BZ#750)
rl_completion_append_character is reset to space every time the completion
function is entered. So we would have to set it to '\0' every time
new_completion() is called. We can make this conditional and avoid using
rl_pending_input.

This code path is most relevant when there are multiple completion
matches with the same prefix, e.g. in router bgp context: "neighbor 1.2.3.4
pa"<ssive|ssword> would have been completed to "neighbor 1.2.3.4 pass "
instead of "neighbor 1.2.3.4 pass".

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2013-07-31 17:58:05 +02:00
..
.gitignore [administrivia] Git should ignore backup files and .loT files 2008-08-22 20:00:46 +01:00
extract.pl.in vtysh: fix false lib path matching in extract.pl.in 2013-02-23 19:38:37 +01:00
Makefile.am zebra: add module to communicate routes to FPM 2012-11-30 21:41:17 +01:00
vtysh_config.c vtysh: Vtysh support for babeld. 2012-03-25 17:06:53 +01:00
vtysh_main.c [vtysh] Save vtysh history to a file 2009-06-24 22:26:38 +01:00
vtysh_user.c [cleanup] Convert XMALLOC/memset to XCALLOC 2009-06-12 17:07:49 +01:00
vtysh_user.h Initial revision 2002-12-13 20:15:29 +00:00
vtysh.c vtysh: don't append superflous spaces (BZ#750) 2013-07-31 17:58:05 +02:00
vtysh.conf.sample * vtysh.conf.sample: Fix typo "integrated-vtysh-conf" -> 2005-01-23 19:24:46 +00:00
vtysh.h vtysh: Vtysh support for babeld. 2012-03-25 17:06:53 +01:00