diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-03-13 14:00:57 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-03-13 14:00:57 +1100 |
| commit | bfaf52f8c0ff6ab5e25944484be8014e855dd410 (patch) | |
| tree | cc17ddad0961def8d8c86c188371a269566edd76 /src/buffer.cc | |
| parent | 1f4ad0f25e82023c5982dbbcb5a1a5aa835e1014 (diff) | |
Do not jump to buffer start on `g.` with no previous modifications
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<BufferCoord> Buffer::last_modification_coord() const { if (m_history_cursor.get() == &m_history) return {}; |
