#!/usr/bin/env python
-# Copyright 2012-2013 GRNET S.A. All rights reserved.
+# Copyright 2012-2014 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
@errors.generic.all
def _run(self, cmd_slice):
- lines = ['%s.\t%s' % (i, l) for i, l in enumerate(self.history[:])][
- cmd_slice]
+ c = self.history.counter
+ lines = ['%s.\t%s' % (i + c, l) for i, l in enumerate(
+ self.history[:])][cmd_slice]
if not isinstance(cmd_slice, slice):
lines = [lines, ]
if self['match']: