summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-08-15 22:36:45 +0200
committerMaxime Coste <frrrwww@gmail.com>2012-08-15 22:36:45 +0200
commitc1fcc593a1316c450302de66c7bb466ea75c0fae (patch)
treefffed63072047ae771a413c72e922d33e597dfb7 /src/client.cc
parenta2aefa299874437a87e3ff0aec8f71d7a490408a (diff)
Store the current client in context
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/client.cc b/src/client.cc
deleted file mode 100644
index bfa0099a..00000000
--- a/src/client.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-#include "client.hh"
-
-#include "window.hh"
-
-namespace Kakoune
-{
-
-Client* current_client = nullptr;
-
-void draw_editor_ifn(Editor& editor)
-{
- Window* window = dynamic_cast<Window*>(&editor);
- if (current_client and window)
- current_client->draw_window(*window);
-}
-
-String prompt(const String& text, const Context& context, Completer completer)
-{
- assert(current_client);
- return current_client->prompt(text, context, completer);
-}
-
-Key get_key()
-{
- assert(current_client);
- return current_client->get_key();
-}
-
-void print_status(const String& status)
-{
- assert(current_client);
- return current_client->print_status(status);
-}
-
-}