close completion window on certain buffer input