From e6f0e8ef7594ec0f7bc77edce88dfd33a95c655e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 6 Jun 2015 11:54:48 +0100 Subject: Move write_debug to buffer utils as write_to_debug_buffer --- src/main.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/main.cc') diff --git a/src/main.cc b/src/main.cc index 3d79d16a..a0bbf0f8 100644 --- a/src/main.cc +++ b/src/main.cc @@ -7,7 +7,6 @@ #include "commands.hh" #include "containers.hh" #include "context.hh" -#include "debug.hh" #include "event_manager.hh" #include "face_registry.hh" #include "file.hh" @@ -383,7 +382,7 @@ int run_server(StringView session, StringView init_command, register_commands(); register_highlighters(); - write_debug("*** This is the debug buffer, where debug info will be written ***"); + write_to_debug_buffer("*** This is the debug buffer, where debug info will be written ***"); Server server(session.empty() ? to_string(getpid()) : session.str()); @@ -395,11 +394,11 @@ int run_server(StringView session, StringView init_command, } catch (Kakoune::runtime_error& error) { - write_debug(format("error while parsing kakrc:\n {}", error.what())); + write_to_debug_buffer(format("error while parsing kakrc:\n {}", error.what())); } catch (Kakoune::client_removed&) { - write_debug("error while parsing kakrc: asked to quit"); + write_to_debug_buffer("error while parsing kakrc: asked to quit"); } { @@ -419,7 +418,7 @@ int run_server(StringView session, StringView init_command, } catch (Kakoune::runtime_error& error) { - write_debug(format("error while opening command line files: {}", error.what())); + write_to_debug_buffer(format("error while opening command line files: {}", error.what())); } else new Buffer("*scratch*", Buffer::Flags::None); -- cgit v1.2.3