'Move editorstack.data to be synchronized when tabs are moved.'

@Slot(int, int)
def move_editorstack_data(self, start, end):

    if ((start < 0) or (end < 0)):
        return
    else:
        steps = abs((end - start))
        direction = ((end - start) // steps)
        for editorstack in self.editorstacks:
            if editorstack.isAncestorOf(self.sender()):
                data = editorstack.data
                editorstack.blockSignals(True)
                for i in range(start, end, direction):
                    (data[i], data[(i + direction)]) = (data[(i + direction)], data[i])
                editorstack.blockSignals(False)
                editorstack.refresh()
