From 7cddaacc5d946377eb825f35968b393d229a1bc3 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 4 Jun 2015 18:51:00 +0100 Subject: [PATCH] Fix support for default face on remote clients --- README.asciidoc | 1 + src/remote.cc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.asciidoc b/README.asciidoc index d2f59192..a12167dd 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -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 diff --git a/src/remote.cc b/src/remote.cc index 207abfb1..3875b3fb 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -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(int socket) { DisplayBuffer db; + db.set_default_face(read(socket)); db.lines() = read_vector(socket); return db; }