def insert(self, window, first_line, *lines):
        row, column = cursor = self.cursors[window]
        left, right = self[row][:column], self[row][column:]
        added = len(lines)

        if lines:
            last_line = lines[-1]
            column = len(last_line)
        else:
            last_line = first_line
            column += len(first_line)

        self[row] = left + first_line
        self[row + 1: row + 1] = lines
        self[row + added] += right

        for other in self.cursors.itervalues():
            if row > other.row:
                other._row += added

        cursor.coords = row + added, column
dataset/ETHPy150Open Julian/PyVi/pyvi/window.py/Buffer.insert/swapped operands of `>`