Add modified buffers count in error message of non-force quit

This commit is contained in:
Delapouite 2017-11-20 19:25:47 +01:00
parent 079b006cda
commit be94505e46

View File

@ -387,7 +387,8 @@ static void ensure_all_buffers_are_saved()
if (it == end) if (it == end)
return; return;
String message = "modified buffers remaining: ["; String message = format("{} modified buffers remaining: [",
std::count_if(it, end, is_modified));
while (it != end) while (it != end)
{ {
message += (*it)->name(); message += (*it)->name();