+ last_hist = next(self.sdb.get_history(), None)
+ if last_hist and last_hist[3] == current.file:
+ return
+ if not current:
+ self.log.debug('Cannot add "%s" to history (empty or missing file)', current)
+ return
+ self.log.debug('add history: "%s"', current)