fixes for two autocomplete cases in #1252
fixes for two autocomplete cases in #1252

tscholl2/smc,DrXyzzy/smc,tscholl2/smc,DrXyzzy/smc,DrXyzzy/smc,DrXyzzy/smc,tscholl2/smc,tscholl2/smc,sagemathinc/smc,sagemathinc/smc,sagemathinc/smc,tscholl2/smc,sagemathinc/smc