Skip to content

Commit c74c1a7

Browse files
author
Michael Klier
committed
use error message on dwquit when unsaved changes
1 parent 172ec30 commit c74c1a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/dokuvimki.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ class DokuVimKi:
347347
if text and not self.ismodified(wp):
348348
print >>sys.stdout, "No unsaved changes in current buffer."
349349
elif not text and not wp in self.pages:
350-
print >>sys.stdout, "Can't save new empty page %s" % wp
350+
print >>sys.stdout, "Can't save new empty page %s." % wp
351351
else:
352352
if not sum and text:
353353
sum = self.default_sum
@@ -728,7 +728,7 @@ class DokuVimKi:
728728
if len(unsaved) == 0:
729729
vim.command('silent! quitall')
730730
else:
731-
print >>sys.stdout, "Some buffers contain unsaved changes. Use DWquit! if you really want to quit."
731+
print >>sys.stderr, "Some buffers contain unsaved changes. Use DWquit! if you really want to quit."
732732

733733

734734
def help(self):

0 commit comments

Comments
 (0)