mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
flag the buffer dirty if replacing something
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8052 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
18b2090a3f
commit
15ac230f5d
@ -1,3 +1,8 @@
|
||||
2003-11-06 Alfredo Braunstein <abraunst@libero.it>
|
||||
|
||||
* lyxfind.C (replaceAll): mark the buffer dirty if something was
|
||||
replaced
|
||||
|
||||
2003-11-06 Alfredo Braunstein <abraunst@libero.it>
|
||||
|
||||
* iterators.[Ch] (ParIterator): new PosIterator-based ctor
|
||||
|
@ -209,6 +209,8 @@ int replaceAll(BufferView * bv,
|
||||
PosIterator beg = buf.pos_iterator_begin();
|
||||
bv->text->init(bv);
|
||||
put_selection_at(bv, beg, 0, false);
|
||||
if (num)
|
||||
buf.markDirty();
|
||||
return num;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user