I knew that this would happen - these lines are from me. :oops:
Anyway: mandrav: That's why I have proposed a RemoveBreakpoints method because only the debugger knows how to effectively remove breakpoints beyond the new EOF if lines are deleted from a file...
I still have my implementation of this at home... an interest?
I 'm working on it, as we speak.
I have opted for another route: I added the following function in the debugger plugins' interface:
virtual void EditorLinesAddedOrRemoved(cbEditor* editor, int startline, int lines) = 0;
If you think about it, it's really up to the debugger to stay in sync with the editor. Not the editor's job to keep bugging the debugger to keep in sync ;)