From c74c1a73818d894f2920167cc89dea9dd8c52315 Mon Sep 17 00:00:00 2001 From: Michael Klier Date: Thu, 29 Jul 2010 16:51:24 +0200 Subject: [PATCH] use error message on dwquit when unsaved changes --- plugin/dokuvimki.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/dokuvimki.vim b/plugin/dokuvimki.vim index e992d2c..cf1bce1 100644 --- a/plugin/dokuvimki.vim +++ b/plugin/dokuvimki.vim @@ -347,7 +347,7 @@ class DokuVimKi: 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 + print >>sys.stdout, "Can't save new empty page %s." % wp else: if not sum and text: sum = self.default_sum @@ -728,7 +728,7 @@ class DokuVimKi: if len(unsaved) == 0: vim.command('silent! quitall') else: - print >>sys.stdout, "Some buffers contain unsaved changes. Use DWquit! if you really want to quit." + print >>sys.stderr, "Some buffers contain unsaved changes. Use DWquit! if you really want to quit." def help(self):