From e39086cd5f6ba7e6a0e6132269e5c12823dcc796 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 11 Sep 2012 19:03:37 +0200 Subject: [PATCH] Buffer: reset undo data after executing hooks in constructor --- src/buffer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/buffer.cc b/src/buffer.cc index 3a0fe78e..5b868cec 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -44,6 +44,8 @@ Buffer::Buffer(String name, Type type, m_hook_manager.run_hook("BufOpen", m_name, context); m_hook_manager.run_hook("BufCreate", m_name, context); + + reset_undo_data(); } Buffer::~Buffer()