def goto_parent(self): """To move the cursor to the parent of the current node.""" node = self.parser.get_current_node() if node: if node.parent.tag != "root": row, col = node.parent.start if not settings.get("jump_to_angle_bracket", bool): col += 1 v.cursor((row, col)) else: v.echom("no parent found")
def whats_wrong(self): """To tell the user about the last encountered problem.""" v.echom(self.parser.get_error())