don't drop user input after spaces when attempting eval
[rainbowstream.git] / rainbowstream / rainbow.py
index b0e8e1d1cbc43cf0ede2c950a6a3f4c38d823b55..3d154cabbf94feee8c50b12e8a73570211e95704 100644 (file)
@@ -1520,7 +1520,7 @@ def reset():
         printNicely(magenta('Need tips ? Type "h" and hit Enter key!'))
     g['reset'] = False
     try:
-        printNicely(str(eval(g['cmd'])))
+        printNicely(str(eval('%s %s' % (g['cmd'], g['stuff']))))
     except Exception:
         pass
 
@@ -1742,7 +1742,7 @@ def stream(domain, args, name='Rainbow Stream'):
                 # the 1st character of that word
                 if current_buffer and g['previous_cmd'] != current_buffer:
                     sys.stdout.write(
-                        g['decorated_name'](c['PREFIX']) + current_buffer)
+                        g['decorated_name'](c['PREFIX']) + unc(current_buffer))
                     sys.stdout.flush()
                 elif not c['HIDE_PROMPT']:
                     sys.stdout.write(g['decorated_name'](c['PREFIX']))