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 ad7534a..5154d6e 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(
-        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']