1 Sep 2008 01:35
Re: request: delete bookmark if txt is deleted
Neil Hodgson <nyamatongwe <at> gmail.com>
2008-08-31 23:35:55 GMT
2008-08-31 23:35:55 GMT
Frank Wunderlich: > in my current tests, i see, that scite/scintilla does not delete a > bookmark if the corresponding text is deleted (instead set to the > current cursorposition) > ... > now i delete lines 2,3 and 4 (cursor now in line2)...i expect, that the > marker is also deleted (i don't need a bookmark if the bookmarked code > does not exists) but scite/scintilla moves the bookmark to line2. Sometimes markers are used to refer to regions of code rather than particular lines of code. For example, a bookmark may be placed at the start of the global variable section or the UI code. Removing the first global variable does not invalidate the bookmark. For markers in Scintilla it is less likely that deletion is desired. In a debugger, I prefer that breakpoints survive deletion of the particular line they are on as they are often placed to be at the start of a code section of interest rather than on a particular line of interest. Sometimes breakpoints have associated data, such as watchpoints, so reestablishing the breakpoint is not trivial. If someone wants to implement removal of bookmarks when that line's text is deleted then it should be optional. Neil --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "scite-interest" group.(Continue reading)
RSS Feed