summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-11-24 16:37:53 +0800
committerMaxime Coste <mawww@kakoune.org>2017-11-24 16:37:53 +0800
commit6084490a6ee77c81b7e3665cd0a2cb7d49759f9f (patch)
tree47218b69a645c370e9b910003b122acb4168a387 /src
parent5a0332ac87dcdab1f811d99599fac58cbc548272 (diff)
parentbe94505e464d94c7672d7f97c45bf2ee2ba5d8f2 (diff)
Merge remote-tracking branch 'Delapouite/remaining-buffers'
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands.cc b/src/commands.cc
index 1b691ed1..1a8e8f73 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -387,7 +387,8 @@ static void ensure_all_buffers_are_saved()
if (it == end)
return;
- String message = "modified buffers remaining: [";
+ String message = format("{} modified buffers remaining: [",
+ std::count_if(it, end, is_modified));
while (it != end)
{
message += (*it)->name();