diff --git a/src/face.hh b/src/face.hh index a240af8b..d2a3af93 100644 --- a/src/face.hh +++ b/src/face.hh @@ -18,7 +18,7 @@ enum class Attribute : int Italic = 1 << 6, FinalFg = 1 << 7, FinalBg = 1 << 8, - FinalAttr = 1 << 8, + FinalAttr = 1 << 9, Final = FinalFg | FinalBg | FinalAttr }; diff --git a/src/face_registry.cc b/src/face_registry.cc index 4f8a6418..5a5187b8 100644 --- a/src/face_registry.cc +++ b/src/face_registry.cc @@ -61,7 +61,7 @@ String to_string(Attribute attributes) { Attribute::Italic, "i" }, { Attribute::Final, "F" }, { Attribute::FinalFg, "f" }, - { Attribute::FinalBg, "b" }, + { Attribute::FinalBg, "g" }, { Attribute::FinalAttr, "a" }, }; diff --git a/test/regression/1920-crash-on-python-in-docstring/ui-out b/test/regression/1920-crash-on-python-in-docstring/ui-out index 34022d40..33cba659 100644 --- a/test/regression/1920-crash-on-python-in-docstring/ui-out +++ b/test/regression/1920-crash-on-python-in-docstring/ui-out @@ -1,5 +1,5 @@ { "jsonrpc": "2.0", "method": "set_ui_options", "params": [{}] } -{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "black", "bg": "white", "attributes": ["final_fg","final_bg","final_attr"] }, "contents": "\"" }, { "face": { "fg": "magenta", "bg": "default", "attributes": [] }, "contents": "\"\">>> " }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "\"\"\"\u000a" }]], { "fg": "default", "bg": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "attributes": [] }] } +{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "black", "bg": "white", "attributes": ["final_fg","final_bg"] }, "contents": "\"" }, { "face": { "fg": "magenta", "bg": "default", "attributes": [] }, "contents": "\"\">>> " }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "\"\"\"\u000a" }]], { "fg": "default", "bg": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "attributes": [] }] } { "jsonrpc": "2.0", "method": "menu_hide", "params": [] } { "jsonrpc": "2.0", "method": "info_hide", "params": [] } { "jsonrpc": "2.0", "method": "draw_status", "params": [[], [{ "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "out 1:1 " }, { "face": { "fg": "black", "bg": "yellow", "attributes": [] }, "contents": "" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": " " }, { "face": { "fg": "blue", "bg": "default", "attributes": [] }, "contents": "1 sel" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": " - client0@[kak-tests]" }], { "fg": "cyan", "bg": "default", "attributes": [] }] }