Make sure tab-completion works even when we have typed a fully
authorLuigi Rizzo <rizzo@icir.org>
Tue, 12 Dec 2006 09:40:45 +0000 (09:40 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 12 Dec 2006 09:40:45 +0000 (09:40 +0000)
commit33cbc5e55e3a9b2b9d275df52b48d492d88579e7
tree168570f7dc65de19c7ba17f3150f5e4928c4e91a
parent00a02844ba30d69dd8ebc97fad4494afd04c0b35
Make sure tab-completion works even when we have typed a fully
matching word (e.g. "sip<TAB>"); this is implemented by this one-line change

-               for (;; dst++, src += n) {
+               for (;src < argindex; dst++, src += n) {

However this code is not exactly trivial to understand, so
i am also adding some comments to help figuring out what it does.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/cli.c