summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-04-07 23:39:12 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-04-07 23:47:50 +0100
commit33de42610dc08dd7bfd65f49a70ec68a478dee2d (patch)
tree82b0b94accd9dd30bfde6a0674adbbb260b0fbb2 /src/buffer.cc
parenta387e7a4c61d3392bbb37190521c03e6676af3eb (diff)
Add g. command to go to the last buffer modification position
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc7
1 files changed, 7 insertions, 0 deletions
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;
+}
+
}