From 087a17eb24059da1a98596bb5c8e9064a72776f4 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 20 Jul 2016 20:29:45 +0100 Subject: Support for going backward/forward in buffer history with / --- src/buffer.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/buffer.cc') diff --git a/src/buffer.cc b/src/buffer.cc index 028f9516..ec970676 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -425,6 +425,11 @@ bool Buffer::move_to(size_t history_id) noexcept return true; } +size_t Buffer::current_history_id() const noexcept +{ + return m_history_cursor->id; +} + void Buffer::check_invariant() const { #ifdef KAK_DEBUG -- cgit v1.2.3