Skip to content

Commit

Permalink
Merge branch 'main' into minor_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo authored Jan 9, 2025
2 parents 1cf3cfc + e0f467f commit 5b74125
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions novelwriter/gui/doceditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1251,10 +1251,11 @@ def _updateDocCounts(self, cCount: int, wCount: int, pCount: int) -> None:
self._nwItem.setCharCount(cCount)
self._nwItem.setWordCount(wCount)
self._nwItem.setParaCount(pCount)
if needsRefresh and not self.textCursor().hasSelection():
# Selection counter should take precedence (#2155)
if needsRefresh:
self._nwItem.notifyToRefresh()
self.docFooter.updateWordCount(wCount, False)
if not self.textCursor().hasSelection():
# Selection counter should take precedence (#2155)
self.docFooter.updateWordCount(wCount, False)
return

@pyqtSlot()
Expand Down

0 comments on commit 5b74125

Please sign in to comment.