diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-09-12 11:31:57 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-09-12 11:31:57 +0800 |
| commit | 63b1d0c353ad8762c4eb5d7e494baf6e163ca1f7 (patch) | |
| tree | c83ff841f4957875fae8cea2ad9c844be7a2a8d4 /src/face_registry.cc | |
| parent | 90ab5ff93b7d4b67fc74a7e48c1c133c36f77f40 (diff) | |
Rename some string conversion function to the common 'to_string'
Diffstat (limited to 'src/face_registry.cc')
| -rw-r--r-- | src/face_registry.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/face_registry.cc b/src/face_registry.cc index 0ae1ae46..192f9fda 100644 --- a/src/face_registry.cc +++ b/src/face_registry.cc @@ -42,7 +42,7 @@ static Face parse_face(StringView facedesc) return res; } -String attributes_to_str(Attribute attributes) +String to_string(Attribute attributes) { if (attributes == Attribute::Normal) return ""; @@ -67,10 +67,7 @@ String attributes_to_str(Attribute attributes) String to_string(Face face) { - return format("{},{}{}", - color_to_str(face.fg), - color_to_str(face.bg), - attributes_to_str(face.attributes)); + return format("{},{}{}", face.fg, face.bg, face.attributes); } Face FaceRegistry::operator[](const String& facedesc) |
