def copy(self):
        """Copy lines to buffer."""
        # Store cut lines in buffer
        copy_buffer = []
        # Get all lines with cursors on them
        line_nums = self.get_lines_with_cursors()
        i = 0
        while i < len(line_nums):
            # Get the line
            line = self.lines[line_nums[i]]
            # Put it in our temporary buffer
            copy_buffer.append(line.get_data())
            i += 1
        self.set_buffer(copy_buffer)
        self.store_action_state("copy")
dataset/ETHPy150Open richrd/suplemon/suplemon/editor.py/Editor.copy/original