Added some more comments and debug output

This commit is contained in:
Veronica K. B. Olsen
2019-11-15 23:00:12 +01:00
parent ed0c4c6e49
commit e0fff7673d
3 changed files with 10 additions and 1 deletions
+3
View File
@@ -530,9 +530,12 @@ class GuiDocEditor(QTextEdit):
theCursor = self.cursorForPosition(thePos)
theCursor.select(QTextCursor.WordUnderCursor)
theWord = theCursor.selectedText().strip().strip(self.nonWord)
if theWord == "":
return
logger.verbose("Looking up '%s' in the dictionary" % theWord)
if self.theDict.checkWord(theWord):
return