1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-15 06:02:49 +03:00

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:
* `Default`: default colors
* `PrimarySelection`: main selection face for every selected character except
the cursor
* `SecondarySelection`: secondary selection face for every selected character

View File

@ -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;
}