Revert "Fix prefix color problem"
authorOrakaro <nhatminh_179@hotmail.com>
Wed, 20 Nov 2019 17:08:01 +0000 (02:08 +0900)
committerOrakaro <nhatminh_179@hotmail.com>
Wed, 20 Nov 2019 17:08:01 +0000 (02:08 +0900)
This reverts commit 72b51c80a88a029d7b9fa4421dd838e58294560f.

rainbowstream/rainbow.py

index ad7534a7b7b21a45eab839e67a2505fba3b3983d..5154d6ef6b429ee94dcc80ec745569d5a58d8427 100644 (file)
@@ -251,7 +251,7 @@ def init(args):
     g['PREFIX'] = u2str(emojize(format_prefix()))
     g['full_name'] = name
     g['decorated_name'] = lambda x: color_func(
     g['PREFIX'] = u2str(emojize(format_prefix()))
     g['full_name'] = name
     g['decorated_name'] = lambda x: color_func(
-        c['DECORATED_NAME'])('[' + x + ']: ')
+        c['DECORATED_NAME'])('[' + x + ']: ', rl=True)
     # Theme init
     files = os.listdir(os.path.dirname(__file__) + '/colorset')
     themes = [f.split('.')[0] for f in files if f.split('.')[-1] == 'json']
     # Theme init
     files = os.listdir(os.path.dirname(__file__) + '/colorset')
     themes = [f.split('.')[0] for f in files if f.split('.')[-1] == 'json']