Allow the minimum chars for auto-completion to be configured

(Fixes issue #1384)

Based on TortoiseSVN revision 23897

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>