Unitron bug with parenthesis?

I keep getting bitten by this lately, but I just now figured out the pattern. Before I send in a bug report, would someone check to see if it happens there?

  1. Open Unitron
  2. type an open parenthesis character { and hit return
  3. Type your name, but don’t hit return again
  4. Click at the start of that second line, and type the close parenthesis character, }

Here, doing this will delete everything else on that line (my name, in this case). And undo will only remove the parenthesis–it does not put the deleted text back.

Does it happen there?

Thanks,
-Chilton

I’m not sure that’s a … bug per se.

There are some “smart” aspects to closing a series of brackets that are not so smart.

I’ve never seen it delete code, which is clearly does in this case, but remove CR’s …

If you type “{” hit return, it will auto tab in one tab. Type “code” and hit return, the cursor will be tabbed in one tab. Type “}” and the close bracket will be in one tab. Hit return, and the tab is removed and the bracket now matches the open bracket.

Not sure why it destroys the code when you do what you just did, and it could qualify for a bug… but… it’s at least behaviour that should be noted and remembered.

The problem with it is that it’s not undoable. When you undo, it just undoes the parenthesis. Your deleted line is permanently gone. Even if you revert to the original version of the file, that line is erased.