summaryrefslogtreecommitdiff
path: root/src/client.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-09-16 19:15:13 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-09-16 19:15:13 +0100
commit06e06d6ea67f10ececd7232471505e7d8f36d509 (patch)
tree478b39028f534bb6b89b16ffcffa54c83c61b3c2 /src/client.hh
parent49903523a7f28c18d324bf605876b9d18a97047b (diff)
remove print_status from UserInterface, pass status line to draw
Client store the current status line. This way calls to print status do not force the user interface to display directly.
Diffstat (limited to 'src/client.hh')
-rw-r--r--src/client.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.hh b/src/client.hh
index ef1a178d..eec3bbd9 100644
--- a/src/client.hh
+++ b/src/client.hh
@@ -8,6 +8,7 @@
#include "keys.hh"
#include "string.hh"
#include "utils.hh"
+#include "display_buffer.hh"
namespace Kakoune
{
@@ -78,6 +79,10 @@ public:
const String& name() const { return m_name; }
void set_name(String name) { m_name = std::move(name); }
+ void print_status(DisplayLine status_line);
+
+ void redraw_ifn();
+
UserInterface& ui() const { return *m_ui; }
private:
Context m_context;
@@ -87,6 +92,7 @@ private:
std::vector<std::unique_ptr<InputMode>> m_mode_trash;
String m_name;
+ DisplayLine m_status_line;
using Insertion = std::pair<InsertMode, std::vector<Key>>;
Insertion m_last_insert = {InsertMode::Insert, {}};