summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-03-09 23:29:46 +0000
committerMaxime Coste <frrrwww@gmail.com>2016-03-09 23:29:46 +0000
commitfcd3437fac01ecb942d3fd9116d1d1a3c455c59e (patch)
tree479798e1738023100c58b9cb9ef13838bb08b85d /src/buffer.cc
parent2d494ccb8e72782a0a015c8890d39ab00d5ce4aa (diff)
parent517abf5e74636052007db0938067aee7bf658965 (diff)
Merge branch 'json-ui'
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index e140f333..c0e25f0a 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -304,7 +304,7 @@ bool Buffer::undo()
--m_history_cursor;
- for (const Modification& modification : reversed(*m_history_cursor))
+ for (const Modification& modification : *m_history_cursor | reverse())
apply_modification(modification.inverse());
return true;
}