summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2011-10-07 14:16:38 +0000
committerMaxime Coste <frrrwww@gmail.com>2011-10-07 14:16:38 +0000
commita19f4f059d3e76210cfefdbb2881255d7fbc7879 (patch)
treea7c8740ec1308c6855d781f191c635323ce41ce4 /src/main.cc
parent9db4aa96917184aab8d28436bec37b12ae6a4448 (diff)
Debug: add a write_debug function
write_debug writes in a Scratch buffer named '*debug*', so that debug messages are accessibles from within kakoune
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index 55d1a291..32a13508 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -7,6 +7,7 @@
#include "register_manager.hh"
#include "selectors.hh"
#include "assert.hh"
+#include "debug.hh"
#include <unordered_map>
#include <map>
@@ -568,6 +569,7 @@ int main(int argc, char* argv[])
try
{
char c = getch();
+ write_debug(std::string("key ") + c + '\n');
if (isdigit(c))
count = count * 10 + c - '0';