From bfaf52f8c0ff6ab5e25944484be8014e855dd410 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 13 Mar 2018 14:00:57 +1100 Subject: Do not jump to buffer start on `g.` with no previous modifications --- src/buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buffer.cc') diff --git a/src/buffer.cc b/src/buffer.cc index 7a476264..f36944e4 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -726,7 +726,7 @@ void Buffer::run_hook_in_own_context(StringView hook_name, StringView param, Str hooks().run_hook(hook_name, param, hook_handler.context()); } -BufferCoord Buffer::last_modification_coord() const +Optional Buffer::last_modification_coord() const { if (m_history_cursor.get() == &m_history) return {}; -- cgit v1.2.3