Fix support for default face on remote clients
This commit is contained in:
parent
9668dccea9
commit
7cddaacc5d
|
@ -729,6 +729,7 @@ afterward.
|
|||
|
||||
there are some builtins faces used by internal Kakoune functionalities:
|
||||
|
||||
* `Default`: default colors
|
||||
* `PrimarySelection`: main selection face for every selected character except
|
||||
the cursor
|
||||
* `SecondarySelection`: secondary selection face for every selected character
|
||||
|
|
|
@ -123,6 +123,7 @@ public:
|
|||
|
||||
void write(const DisplayBuffer& display_buffer)
|
||||
{
|
||||
write(display_buffer.default_face());
|
||||
write(display_buffer.lines());
|
||||
}
|
||||
|
||||
|
@ -225,6 +226,7 @@ template<>
|
|||
DisplayBuffer read<DisplayBuffer>(int socket)
|
||||
{
|
||||
DisplayBuffer db;
|
||||
db.set_default_face(read<Face>(socket));
|
||||
db.lines() = read_vector<DisplayLine>(socket);
|
||||
return db;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user