Fix support for default face on remote clients

This commit is contained in:
Maxime Coste 2015-06-04 18:51:00 +01:00
parent 9668dccea9
commit 7cddaacc5d
2 changed files with 3 additions and 0 deletions

View File

@ -729,6 +729,7 @@ afterward.
there are some builtins faces used by internal Kakoune functionalities: there are some builtins faces used by internal Kakoune functionalities:
* `Default`: default colors
* `PrimarySelection`: main selection face for every selected character except * `PrimarySelection`: main selection face for every selected character except
the cursor the cursor
* `SecondarySelection`: secondary selection face for every selected character * `SecondarySelection`: secondary selection face for every selected character

View File

@ -123,6 +123,7 @@ public:
void write(const DisplayBuffer& display_buffer) void write(const DisplayBuffer& display_buffer)
{ {
write(display_buffer.default_face());
write(display_buffer.lines()); write(display_buffer.lines());
} }
@ -225,6 +226,7 @@ template<>
DisplayBuffer read<DisplayBuffer>(int socket) DisplayBuffer read<DisplayBuffer>(int socket)
{ {
DisplayBuffer db; DisplayBuffer db;
db.set_default_face(read<Face>(socket));
db.lines() = read_vector<DisplayLine>(socket); db.lines() = read_vector<DisplayLine>(socket);
return db; return db;
} }