Skip to content

Commit

Permalink
catch saving of empty new pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Klier committed Jul 29, 2010
1 parent 72be8cb commit 172ec30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/dokuvimki.vim
Expand Up @@ -346,6 +346,8 @@ class DokuVimKi:
text = "\n".join(self.buffers[wp].buf)
if text and not self.ismodified(wp):
print >>sys.stdout, "No unsaved changes in current buffer."
elif not text and not wp in self.pages:
print >>sys.stdout, "Can't save new empty page %s" % wp
else:
if not sum and text:
sum = self.default_sum
Expand Down

0 comments on commit 172ec30

Please sign in to comment.