fixed-wrong-cursor-position

after the code completion of text node of type xml-reference-to-xml,
the cursor postion isn't right after the text, but one more offset.
Merge pull request #18 from kuozhang/fix-wrong-cursor-positon

fixed-wrong-cursor-position