<table><tr><td style="">ahmadsamir created this revision.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />ahmadsamir requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17630">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When a word is added to the dictionary or ignored via the spellingMenu,<br />
the BackgroundChecker instance in ontheflycheck should be updated to<br />
reflect the changes, otherwise words already added to the dictionary<br />
(or ignored) are re-highlited as misspelled when the view changes.</p>

<p>Depends on <a href="https://phabricator.kde.org/D17629" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D17629</a>.</p>

<p>BUG: 387729</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Open a file with misspelled words in kate and enable automatic spellchecking</li>
<li class="remarkup-list-item">Using the context menu:<ul class="remarkup-list">
<li class="remarkup-list-item">add a misspelled word to the dictionary</li>
<li class="remarkup-list-item">Ignore another word B misspelling highlighting is removed, as expected</li>
</ul></li>
<li class="remarkup-list-item">Scroll up/down so that those particular words are out of view then scroll and show them again; notice that those words re-highlighted as misspelled</li>
<li class="remarkup-list-item">After applying the pacth, words added/ingored to the dictionary aren't going to be re-highlighted as misspelled when the view changes</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-ontheflycheck-backgroundchecker</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17630">https://phabricator.kde.org/D17630</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/spellcheck/ontheflycheck.cpp<br />
src/spellcheck/ontheflycheck.h<br />
src/spellcheck/spellcheck.cpp<br />
src/spellcheck/spellcheck.h</div></div></div><br /><div><strong>To: </strong>ahmadsamir<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, hase, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>