Dave Jarvis' Repositories

M src/main/java/com/keenwrite/ui/spelling/TextEditorSpellChecker.java
7878
    // paragraph, instead.
7979
    if( text.isBlank() ) {
80
      paraId++;
80
      final var paragraphs = editor.getParagraphs().size();
81
82
      paraId = Math.min( paraId + 1, paragraphs - 1 );
8183
      paragraph = editor.getParagraph( paraId );
8284
      text = paragraph.getText();
...
9496
   * @param editor The document (or portions thereof) to spellcheck.
9597
   * @param text   Look up words for this text in the lexicon.
96
   * @param paraId Set to -1 to apply resulting style spans to the entire
97
   *               text.
98
   * @param paraId Set to -1 to apply resulting style spans to the entire text.
9899
   */
99100
  private void spellcheck(