branch : pmacs2
This commit is contained in:
moculus 2008-11-12 15:26:56 +00:00
parent a1199a2b43
commit 0d0f924c2e
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ class HtmlCheckSpelling(method.Method):
# -x no backup file
# -M show context menu
# -H treat input document as HTML
if w.buffer.changed():
w.set_error("There are unsaved changes; please save first.")
return
w.application.run_external('ispell', '-x', '-M', '-H', w.buffer.path)
if w.buffer.changed_on_disk():
w.buffer.reload()