mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
#6945 correct refresh range maximum on char erase
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35616 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6cc0eee26a
commit
3167edeb48
@ -153,6 +153,12 @@ public:
|
||||
needsRefresh(pos);
|
||||
}
|
||||
|
||||
void refreshLast(pos_type pos)
|
||||
{
|
||||
if (pos < refresh_.last)
|
||||
refresh_.last = pos;
|
||||
}
|
||||
|
||||
SpellChecker::Result getState(pos_type pos) const
|
||||
{
|
||||
SpellChecker::Result result = SpellChecker::WORD_OK;
|
||||
@ -784,6 +790,7 @@ bool Paragraph::eraseChar(pos_type pos, bool trackChanges)
|
||||
|
||||
// Update list of misspelled positions
|
||||
d->speller_state_.decreasePosAfterPos(pos);
|
||||
d->speller_state_.refreshLast(size());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user