After a breakpoint has been set, it can only be removed using the Ctrl/Command-B keyboard shortcut if the cursor is in the first column of the line. In the past, it was possible to remove the breakpoint with the cursor anywhere on the line. This still works for full-line bookmarks.
For region bookmarks, which are created by selecting a region of code and then pressing Ctrl/Command-M, the bookmark cannot be removed just by having the cursor anywhere inside the bookmark. If one tries that, it toggles a full-line bookmark in that line. To remove a region bookmark, the user has to select exactly the same region of code and then press Ctrl/Command-M again.
In the past, pressing Ctrl/Command-B or Ctrl/Command-M anywhere would remove a breakpoint or bookmark, respectively, that surrounded the cursor. That behavior was easier to use and should be restored.
Logged In: YES
user_id=1075744
Originator: YES
Fixed as of revision 4487.
The previously criticized performance problems when finding an overlapping region have been avoided: Instead of scanning the entire ordered set of regions for a document, only the regions between the first and the last line of the region to be toggled (added/removed) are considered. This has been efficiently achieved by getting the headSet of the tailSet of regions.