Skip to content
Browse files

Merge pull request #32 from trsaunders/master

run_cmd can take list of commands as input
  • Loading branch information...
2 parents b39d40a + 520fc40 commit a06b61620e74c7caf7c54bfcfb6ff84c9122df6e @quarnster committed Oct 14, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 sublimegdb.py
View
6 sublimegdb.py
@@ -1158,6 +1158,12 @@ def run_cmd(cmd, block=False, mimode=True, timeout=10):
timeoutcount = timeout/0.001
+ ### handle a list of commands by recursively calling run_cmd
+ if isinstance(cmd, list):
+ for c in cmd:
+ run_cmd(c, block, mimode, timeout)
+ return count
+
if mimode:
count = count + 1
cmd = "%d%s\n" % (count, cmd)

0 comments on commit a06b616

Please sign in to comment.
Something went wrong with that request. Please try again.