def update_marker(self, view):
bps = []
fn = view.file_name()
if fn is None:
return
fn = normalize(fn)
for bkpt in self.breakpoints:
if bkpt.filename == fn and not (bkpt.line == gdb_cursor_position and fn == gdb_cursor):
bps.append(view.full_line(view.text_point(bkpt.line - 1, 0)))
view.add_regions("sublimegdb.breakpoints", bps,
get_setting("breakpoint_scope", "keyword.gdb"),
get_setting("breakpoint_icon", "circle"),
sublime.HIDDEN)
评论列表
文章目录