From 13d039c228192744e1258a443fc9b17606200f22 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 2 Mar 2016 13:12:14 +0000 Subject: [PATCH] Ensure the BufferManager is destroyed first so that buffer hooks can access other managers Fixes #612 --- src/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index 4c725a3b3..b1c5a7dfc 100644 --- a/src/main.cc +++ b/src/main.cc @@ -459,12 +459,12 @@ int run_server(StringView session, StringView init_command, GlobalScope global_scope; ShellManager shell_manager; CommandManager command_manager; - BufferManager buffer_manager; RegisterManager register_manager; HighlighterRegistry highlighter_registry; DefinedHighlighters defined_highlighters; FaceRegistry face_registry; ClientManager client_manager; + BufferManager buffer_manager; register_options(); register_env_vars(); @@ -589,9 +589,9 @@ int run_filter(StringView keystr, StringView commands, ConstArrayView