current_buffer in unicode wrapper
[rainbowstream.git] / rainbowstream / rainbow.py
index d2caee3..c66ae9a 100644 (file)
@@ -193,7 +193,7 @@ def init(args):
     c['message_dict'] = []
     # Image on term
     c['IMAGE_ON_TERM'] = args.image_on_term
-    set_config('IMAGE_ON_TERM',str(c['IMAGE_ON_TERM']))
+    set_config('IMAGE_ON_TERM', str(c['IMAGE_ON_TERM']))
     # Mute dict
     c['IGNORE_LIST'] += build_mute_dict()
 
@@ -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']))