refinements to c++ completion tab handling