mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
update the screen while spellchecking and merging changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9289 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
42833f9c13
commit
ce2cab2732
@ -49,6 +49,7 @@ src/frontends/gtk/GMathsMatrix.C
|
||||
src/frontends/gtk/GNote.C
|
||||
src/frontends/gtk/GParagraph.C
|
||||
src/frontends/gtk/GSearch.C
|
||||
src/frontends/gtk/GSendto.C
|
||||
src/frontends/gtk/GShowFile.C
|
||||
src/frontends/gtk/GSpellchecker.C
|
||||
src/frontends/gtk/GTableCreate.C
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-11-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* lyxfind.C (findNextChange): update the bufferview after setting
|
||||
the selection
|
||||
|
||||
2004-11-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* text3.C (getStatus): disable LFUN_INSET_OPTARG when the max
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-11-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* ControlSpellchecker.C (check): update the view when setting the
|
||||
selection
|
||||
|
||||
2004-11-18 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* ControlSpellchecker.C (nextWord): rewrite to skip words
|
||||
|
@ -199,8 +199,10 @@ void ControlSpellchecker::check()
|
||||
word_ = nextWord(cur, start, bufferparams);
|
||||
|
||||
// end of document
|
||||
if (getWord().empty())
|
||||
break;
|
||||
if (getWord().empty()) {
|
||||
showSummary();
|
||||
return;
|
||||
}
|
||||
|
||||
++count_;
|
||||
|
||||
@ -227,14 +229,15 @@ void ControlSpellchecker::check()
|
||||
|
||||
lyxerr[Debug::GUI] << "Found word \"" << getWord() << "\"" << endl;
|
||||
|
||||
if (getWord().empty()) {
|
||||
showSummary();
|
||||
return;
|
||||
}
|
||||
|
||||
int const size = getWord().size();
|
||||
cur.pos() -= size;
|
||||
kernel().bufferview()->putSelectionAt(cur, size, false);
|
||||
// if we used a lfun like in find/replace, dispatch would do
|
||||
// that for us
|
||||
kernel().bufferview()->update();
|
||||
if (kernel().bufferview()->fitCursor())
|
||||
kernel().bufferview()->update();
|
||||
|
||||
|
||||
// set suggestions
|
||||
if (res != SpellBase::OK && res != SpellBase::IGNORE) {
|
||||
|
@ -363,6 +363,11 @@ bool findNextChange(BufferView * bv)
|
||||
}
|
||||
pos_type length = end - pos;
|
||||
bv->putSelectionAt(cur, length, false);
|
||||
// if we used a lfun like in find/replace, dispatch would do
|
||||
// that for us
|
||||
bv->update();
|
||||
if (bv->fitCursor())
|
||||
bv->update();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user