diff --git a/plugin/PySnipEmu.py b/plugin/PySnipEmu.py index 210e40f..eaa7fc3 100644 --- a/plugin/PySnipEmu.py +++ b/plugin/PySnipEmu.py @@ -187,9 +187,7 @@ class TextObject(object): debug(" childs: %s" % self._children) debug(" obj_idx: %i" % obj_idx) - for idx,m in enumerate(self._children[:]): - if idx == obj_idx: - continue + for idx,m in enumerate(self._children[obj_idx+1:]): delta_lines = 0 delta_cols_begin = 0 delta_cols_end = 0 diff --git a/test.py b/test.py index 076640a..49285e7 100755 --- a/test.py +++ b/test.py @@ -80,7 +80,7 @@ EOF self.send(":w! %s\n" % fn) # Give screen a chance to send the cmd and vim to write the file - time.sleep(.10) + time.sleep(.25) # Read the output, chop the trailing newline self.output = open(fn,"r").read()[:-1]