[rkward-cvs] SF.net SVN: rkward:[3524] trunk/rkward/rkward/rbackend/rkrbackend.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Sun Apr 24 11:55:25 UTC 2011


Revision: 3524
          http://rkward.svn.sourceforge.net/rkward/?rev=3524&view=rev
Author:   tfry
Date:     2011-04-24 11:55:25 +0000 (Sun, 24 Apr 2011)

Log Message:
-----------
Suppress spurious empty error messages

Modified Paths:
--------------
    trunk/rkward/rkward/rbackend/rkrbackend.cpp

Modified: trunk/rkward/rkward/rbackend/rkrbackend.cpp
===================================================================
--- trunk/rkward/rkward/rbackend/rkrbackend.cpp	2011-04-24 11:35:10 UTC (rev 3523)
+++ trunk/rkward/rkward/rbackend/rkrbackend.cpp	2011-04-24 11:55:25 UTC (rev 3524)
@@ -391,8 +391,8 @@
 				RKRBackend::repl_status.user_command_status = RKRBackend::RKReplStatus::UserCommandSyntaxError;
 			}
 		} else if (RKRBackend::repl_status.user_command_status == RKRBackend::RKReplStatus::ReplIterationKilled) {
-			// purge superflous newlines
-			if (QString ("\n") == buf) return;
+			// purge superflous newlines and empty output
+			return;
 		} else {
 			RK_ASSERT (RKRBackend::repl_status.user_command_status != RKRBackend::RKReplStatus::NoUserCommand);
 		}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list