From 33de42610dc08dd7bfd65f49a70ec68a478dee2d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 7 Apr 2014 23:39:12 +0100 Subject: Add g. command to go to the last buffer modification position --- src/buffer.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/buffer.cc') diff --git a/src/buffer.cc b/src/buffer.cc index 47c523d3..3114b9f5 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -715,4 +715,11 @@ void Buffer::run_hook_in_own_context(const String& hook_name, const String& para m_hooks.run_hook(hook_name, param, hook_handler.context()); } +BufferCoord Buffer::last_modification_coord() const +{ + if (m_history.empty()) + return {}; + return m_history.back().back().coord; +} + } -- cgit v1.2.3