Author Topic: Multicursor fails  (Read 995 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1828
  • Hero Points: 177
  • Text
Multicursor fails
« on: September 04, 2014, 12:08:22 am »
Given this Java code:
Code: [Select]
class Barffoo {
    boolean flag1;
    boolean flag2;
    boolean flag3;


    public void f() {
flag1);
flag2);
flag3);
    }
}




#1:
Place the cursor at the start of line "flag1);"
Shift-Down 3-times.
Execute convert_to_multiple_cursors.
Wierd result, see [size=78%]"MultipleCursorsFail.jpg"[/size]




#2:
Place the cursor at the start of line "flag1);"
Ctrl+Click
   Flag2);
   Flag3);
Press TAB.
Each line is indented a different amount, see "MultipleCursorsFail2.jpg"

#3:

Place the cursor at the start of line "flag1);"
Ctrl+Click
   Flag3[size=78%]);[/size]
   Flag2[/size][size=78%]);[/size]
(Notice, 3 first, then 2).
Press TAB.
Press UNDO.
The cursor on "flag2" is removed.
You cannot UNDO the indenting.

Clark

  • Moderator
  • Senior Community Member
  • *
  • Posts: 4896
  • Hero Points: 399
Re: Multicursor fails
« Reply #1 on: September 04, 2014, 02:50:52 pm »
Reproduced all 3 issues. Thanks.

#1 convert_to_multiple_cursors seems to have a bug
#2 Not really a bug. These code snippets are not valid.
#3 Definitely some sort of bug.

Clark

  • Moderator
  • Senior Community Member
  • *
  • Posts: 4896
  • Hero Points: 399
Re: Multicursor fails
« Reply #2 on: September 04, 2014, 06:12:53 pm »
Problems #1 and #3 are fixed for next beta. Thanks for reporting these.