Skip to content

Commit 172ec30

Browse files
author
Michael Klier
committed
catch saving of empty new pages
1 parent 72be8cb commit 172ec30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/dokuvimki.vim

+2
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ class DokuVimKi:
346346
text = "\n".join(self.buffers[wp].buf)
347347
if text and not self.ismodified(wp):
348348
print >>sys.stdout, "No unsaved changes in current buffer."
349+
elif not text and not wp in self.pages:
350+
print >>sys.stdout, "Can't save new empty page %s" % wp
349351
else:
350352
if not sum and text:
351353
sum = self.default_sum

0 commit comments

Comments
 (0)