How to delete a marker from a buffer in a macro?
Submitted by Wednesday, 5 July, 2006 - 13:32
on
Hi All,
I insert a marker into a buffer, before I make some modifications to it;Just to remember my starting position. After I finish my task, I will remove the marker, but this fails.
My code[snippet] is as follows:
char mc = 'X';
buffer.addMarker(mc, 6);
... my buffer-modies here ...
Marker m = buffer.getMarker(mc);
buffer.removeMarker(m.getPosition());
The marker is stil there [and "m" is NOT null!]
Any help would be really very welcome.
Thanks,
Manfred
I insert a marker into a buffer, before I make some modifications to it;Just to remember my starting position. After I finish my task, I will remove the marker, but this fails.
My code[snippet] is as follows:
char mc = 'X';
buffer.addMarker(mc, 6);
... my buffer-modies here ...
Marker m = buffer.getMarker(mc);
buffer.removeMarker(m.getPosition());
The marker is stil there [and "m" is NOT null!]
Any help would be really very welcome.
Thanks,
Manfred