From 9e15181dc9b56435c5e1d3ab87dd03404d6c31c9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 8 Mar 2016 21:35:56 +0000 Subject: Rework container helpers, use pipe syntax and cleanup implementation use 'container | filter(func) | reverse() | transform(func)' instead of 'transform(reverse(filter(container), func), func)' to express container transformations. --- 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 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; } -- cgit v1.2.3