Surround With... Broken?

I've got this snippet of code:

     int result = 0;
     int keys = event.getKeys();
     if (keys & MouseEvent.ALT_KEY != 0)
       result = result + KeyEvent.ALT_MASK;

Now I get an error on the if statement as the "keys &
MouseEvent.ALT_KEY" clause needs brackets around it.  If I select that
section, and execute 'Code|Surround With...' I don't get the (expr) item
I want, that's usually the first place in the list.  All I get is the
list of Live Templates defined.

I suppose it could be because that line of code is marked with an error,
but this is the very operation I need to fix it!

Is anyone else noticing this?  Seems like it must be a recent change...

N.

4 comments
Comment actions Permalink

ps. I should say I'm seeing the basic items like (expr) appear if I
select other things in the code.
N.

0
Comment actions Permalink

ps. I should say I'm seeing the basic items like (expr) appear if I
select other things in the code.
N.

0
Comment actions Permalink

Hi Nathan,

That is a bug, please submit corresponding ticket to the tracker.

Denis

0
Comment actions Permalink

On 02/09/2011 18:00, Denis Zhdanov wrote:

Hi Nathan,

>

That is a bug, please submit corresponding ticket to the tracker.

>

Denis

>

---
Original message URL: http://devnet.jetbrains.net/message/5318365#5318365


Done : http://youtrack.jetbrains.net/issue/IDEA-73868

Thanks,
N.

0

Please sign in to leave a comment.