parent
d74ff84fa3
commit
8ed3f57039
|
@ -459,7 +459,8 @@ class FileBuffer(Buffer):
|
|||
data = self.read()
|
||||
self.lines = data.split(self.nl)
|
||||
def reload(self):
|
||||
self.open()
|
||||
data = self.read()
|
||||
self.set_data(data)
|
||||
def changed_on_disk(self):
|
||||
assert self.checksum is not None
|
||||
f = open(self.path)
|
||||
|
|
|
@ -113,6 +113,7 @@ class LatexInsertSpace(TextInsertSpace):
|
|||
class LatexCheckSpelling(method.Method):
|
||||
"""Check the spelling of the document via ispell -t"""
|
||||
def _execute(self, w, **vargs):
|
||||
w.application.run_external('ispell', '-t', w.buffer.path)
|
||||
w.application.run_external('ispell', '-M', '-t', w.buffer.path)
|
||||
w.buffer.reload()
|
||||
|
||||
install = Latex.install
|
||||
|
|
Loading…
Reference in New Issue