A slight optimization

This commit is contained in:
Holger Rapp 2009-07-04 23:15:37 +02:00
parent a54127268f
commit 87b0c199ae
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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]