]> git.puffer.fish Git - matthieu/frr.git/commit
lib: explicitly support the case of empty input for completions
authorQuentin Young <qlyoung@cumulusnetworks.com>
Sun, 2 Oct 2016 04:47:31 +0000 (04:47 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Sun, 2 Oct 2016 04:47:31 +0000 (04:47 +0000)
commita78596c42d43a01de85c7ada95d15b165743f6ff
treeef4c84ce04a8219f2416d974a6cd5dd55be8ce36
parent51d41d759bcd02506ec562018faace777dcee352
lib: explicitly support the case of empty input for completions

When the user tab- or ?-completes when the character prior to
the position of the cursor is a space, completion logic is
passed null. Explicitly handle this case instead of using
partly_match, which has special logic associated with it to
allow abbreviating certain tokens.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/command_match.c
lib/command_match.h