'Reimplemented slot to handle multiline paste action'

def paste(self):

    text = to_text_string(QApplication.clipboard().text())
    if (len(text.splitlines()) > 1):
        if self.new_input_line:
            self.on_new_line()
        self.remove_selected_text()
        end = self.get_current_line_from_cursor()
        lines = ((self.get_current_line_to_cursor() + text) + end)
        self.clear_line()
        self.execute_lines(lines)
        self.move_cursor((- len(end)))
    else:
        ShellBaseWidget.paste(self)
