From: Debian/Kubuntu Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Date: Thu, 21 Apr 2016 01:54:13 +0200
Subject: maxima_multiresults

===================================================================
---
 src/backends/maxima/maximaexpression.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Index: b/src/backends/maxima/maximaexpression.cpp
===================================================================
--- a/src/backends/maxima/maximaexpression.cpp
+++ b/src/backends/maxima/maximaexpression.cpp
@@ -472,7 +472,12 @@
                 {
                     //if we got an error message, but also a result, lets just+
                     //assume that it was just a warning, as obviously something worked
-                    if(errorMessage().isEmpty()||result!=nullptr)
+                    if(errorMessage().isEmpty() && idx2 < out.size()) {
+                        // just a prompt, and there are more results ahead
+                        idx = idx2;
+                        continue;
+                    }
+                    else if(errorMessage().isEmpty()||result!==nullptr)
                     {
                         setResult(result);
                         setStatus(Cantor::Expression::Done);
