aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ring.cpp')
-rw-r--r--src/ring.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ring.cpp b/src/ring.cpp
index fcaea3a..fb10552 100644
--- a/src/ring.cpp
+++ b/src/ring.cpp
@@ -160,6 +160,16 @@ Ring::is_any_dirty(void)
return false;
}
+void
+Ring::save_all_dirty_buffers(void)
+{
+ Buffer *cur;
+
+ TAILQ_FOREACH(cur, &head, buffers)
+ if (cur->dirty && cur->filename)
+ cur->save();
+}
+
bool
Ring::edit(tecoInt id)
{