예제 #1
0
 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")
예제 #2
0
 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")
예제 #3
0
 def whats_wrong(self):
     """To tell the user about the last encountered problem."""
     v.echom(self.parser.get_error())
예제 #4
0
 def whats_wrong(self):
     """To tell the user about the last encountered problem."""
     v.echom(self.parser.get_error())