Merge branch 'word_counts' into scrolling

This commit is contained in:
Veronica K. B. Olsen
2020-10-11 20:36:30 +02:00
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -376,9 +376,14 @@ class GuiDocEditor(QTextEdit):
return False
docText = self.getText()
cC, wC, pC = countWords(docText)
self._updateCounts(cC, wC, pC)
theItem.setCharCount(self.charCount)
theItem.setWordCount(self.wordCount)
theItem.setParaCount(self.paraCount)
self.saveCursorPosition()
self.nwDocument.saveDocument(docText)
self.setDocumentChanged(False)