summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-07-20 20:20:03 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-07-24 21:25:05 +0100
commit03a4b3c73ff8cf7d37387df8bd0fcf9e895b59e0 (patch)
treebdbbc01720925f962a6df5647c9a204175afe424 /src/buffer.hh
parent3edd2c127c9d1754a487d76de38ec9b2c690ff7c (diff)
Support counts for undo/redo
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index be510a79..4cd99c8d 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -132,8 +132,8 @@ public:
void set_fs_timestamp(timespec ts);
void commit_undo_group();
- bool undo() noexcept;
- bool redo() noexcept;
+ bool undo(size_t count = 1) noexcept;
+ bool redo(size_t count = 1) noexcept;
bool move_to(size_t history_id) noexcept;
String string(ByteCoord begin, ByteCoord end) const;