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