From 53e1d2f0deec76c102d0f0913f1809e8309aa40b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 1 Aug 2017 14:48:45 +0700 Subject: [PATCH] Slight formatting tweak --- src/buffer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buffer.cc b/src/buffer.cc index 74c22c26..b85d01ee 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -419,8 +419,8 @@ Buffer::HistoryNode* Buffer::find_history_node(HistoryNode* node, const Func& fu bool Buffer::move_to(size_t history_id) noexcept { - HistoryNode* target_node = find_history_node(&m_history, [history_id](HistoryNode* node) { return node->id == history_id; }); - + auto* target_node = find_history_node(&m_history, [history_id](auto* node) + { return node->id == history_id; }); if (not target_node) return false;