embitzForum
  • Status Unconfirmed
  • Percent Complete
    0%
  • Ticket Type Bug Report
  • Category
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Normal
  • Reported Version 2.30
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 0
  • Private No
Attached to Project: EmBitz IDE
Opened by k.h (k.h) - 2014-12-08

Ticket#206 - Allow Multiple Selections/Enable Typing and Deleting Erroneous Behavior.

Strange things happen when trying to type, delete, and edit multiple lines in the editor. Adding spaces/tabs or deleting spaces and tabs will most likely cause extra text to be selected and deleted. To see the effects of this issue please perform the following steps:

1. Enable 'Allow Multiple Selections' and 'Enable typing (and deleting) in multiple selections simultaneously' in Settings -> Editor -> Margins and caret. Aditionally, enable TAB characters instead of spaces every time the TAB key is pressed.

2. Create a new file (I tested with a .h file) and copy the following text into the file:

typedef enum {
BIT7 = 0x80,
BIT6 = 0x40,
BIT5 = 0x20,
BIT4 = 0x10,
BIT3 = 0x08,
BIT2 = 0x04,
BIT1 = 0x02,
BIT0 = 0x01,
} REGISTER;

NOTE: tab characters were used to indent the BIT definitions.

3. Place the caret at the beginning of the first equals sign. Press and hold Alt+Shift and Press the down arrow key to place one big caret before all the equals signs.

4. Press the TAB key twice. This will reproduce the error.

5. Repeat steps 2. and 3. and press the space bar 5 times.

6. With the lines still selected press the Backspace key 5 times. Not only will the spaces not be deleted, text AFTER the caret will be deleted, and lines below the caret will become selected and extra text will be deleted.

This behavior is not present in Code::Blocks 13.12.

This ticket does not depend on any other tickets.

k.h (k.h)
Monday, 08 December 2014, 17:14 GMT
Here is a file with which to test this bug.
   test.h (0.2 KiB)
Admin (EmBlocks)
Monday, 08 December 2014, 17:50 GMT
Yes, I see.

This is also present in my code::blocks svn 7502 which I use for EB programming. So they have fixed this somehow but I don't know how (yet).

Thanks
Admin (EmBlocks)
Monday, 08 December 2014, 18:09 GMT
I think that the scintilla must be updated to a newer version.

Loading...