Autocompletion "eats" the following character

Having trouble installing Oxygen? Got a bug to report? Post it all here.
dma_k
Posts: 32
Joined: Fri Aug 05, 2011 8:27 pm

Autocompletion "eats" the following character

Post by dma_k »

Dear oXygen XML editor support,

I wonder if the following behaviour is one that is really expected by you.

Suppose I have a text node "This was year 2006." and I want to surround the text "2006" with tag "<date>".
  • I type: "This was year <date>2006." [OK] and place the caret before "."
  • I type "</" (so it is "This was year <date>2006</.") and now oXygen suggests me to close the tag [OK]
  • I confirm closing the tag. The tag is closed, but dot "." is removed (not it is "This was year <date>2006</date>") [WRONG]
More over, oXygen seems to remove all punctuation characters until the next space:
"This was year <date>2006</.,: " → "This was year <date>2006</date> "

That is a bit annoying, as I destroys the original text while making XML annotations.

Also I suppose that oXygen should close the tag without asking, as characters ".,:" are not likely to start the XML tag :)

Additional info:
oXygen XML Editor and XSLT Debugger v12.1.0.v2011031114
Eclipse Helios SR2 v3.6.2.r362_v20110210
dma_k
Posts: 32
Joined: Fri Aug 05, 2011 8:27 pm

Re: Autocompletion "eats" the following character

Post by dma_k »

Works fine in oXygen v12.2.0.v2011080114.
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Autocompletion "eats" the following character

Post by adrian »

Hello,

Actually, I managed to reproduce this problem(or something very similar) on v12.2.0.v2011080114. I've logged it to our issue tracking tool and we'll resolve it in the next version of Oxygen.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply