Autocomplete close tag puts cursor in wrong position

Having trouble installing Oxygen? Got a bug to report? Post it all here.
hlship
Posts: 1
Joined: Fri Oct 07, 2005 5:20 pm
Contact:

Autocomplete close tag puts cursor in wrong position

Post by hlship »

This seems to be a change between 6.1.0 and 6.2.0.

I have the autocomplete on, against a real DTD. Win XP, JDK 1.5, Eclispe 3.1.

Oxygen does the right thing as I type, i.e.

<b CTRL-SPACE yields:

Code: Select all

<binding name="|"></binding>
(the pipe marks the cursor position)

In my DTD, <binding> has an optional body and a mix of required
and optional attributes.

So I continue typing:

Code: Select all

<binding name="delegate" value="delegate"|></binding>
The cursor is just inside the '>'.

I type the '/' and Oxygen removed the </binding> tag and closes the <binding> tag ... but leaves the cursor in the wrong position.

Code: Select all

<binding name="name" value="delegate"/|>
I want the cursor to be outside the tag, after the '>'.

I'm pretty certain that 6.1.0 did what I wanted.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

No, it always worked like it works in 6.2. (I just tested with 6.1to be absolutely sure :).)

Best Regards,
George
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi again,

I added a feature request with this so that this will behave like:

<x|></x> type / results <x/>|
<x/|> type delete results <x>|</x>

I'm not sure if this should be controlled by an option or the default behavior. The current behavior is:

<x|></x> type / results <x/|>
<x/|> type delete results <x|></x>

which allows moving from one form of representing the empty tag to the other without any caret moves.

Best Regards,
George
Post Reply