I've attached a patch for the first attempt at a test for insert_positions. I think there is a bug in the last test case, so I haven't tried to check in. Sven, could you look at it. I think the output should look like: +>line: {tst a}{.bC.cB.dA} +>COMPADD:{} +>INSERT_POSITIONS:{5:14} +>NO:{aA.bC.cB.dA} +>NO:{aD.bC.cB.dA} But zsh seems to want to leave the cursor after the C, and insert_positions has three values rather than 2. -FR __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/