mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Workaround for #7987: deleted text in change-tracking mode is not found in Advanced F&R any more.
This commit is contained in:
parent
13cb7da11d
commit
cb79658e54
@ -787,11 +787,11 @@ static docstring stringifySearchBuffer(Buffer & buffer, FindAndReplaceOptions co
|
|||||||
Paragraph const & par = buffer.paragraphs().at(pit);
|
Paragraph const & par = buffer.paragraphs().at(pit);
|
||||||
LYXERR(Debug::FIND, "Adding to search string: '"
|
LYXERR(Debug::FIND, "Adding to search string: '"
|
||||||
<< par.asString(pos_type(0), par.size(),
|
<< par.asString(pos_type(0), par.size(),
|
||||||
AS_STR_INSETS | AS_STR_PLAINTEXT,
|
AS_STR_INSETS | AS_STR_SKIPDELETE | AS_STR_PLAINTEXT,
|
||||||
&runparams)
|
&runparams)
|
||||||
<< "'");
|
<< "'");
|
||||||
str += par.asString(pos_type(0), par.size(),
|
str += par.asString(pos_type(0), par.size(),
|
||||||
AS_STR_INSETS | AS_STR_PLAINTEXT,
|
AS_STR_INSETS | AS_STR_SKIPDELETE | AS_STR_PLAINTEXT,
|
||||||
&runparams);
|
&runparams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1044,7 +1044,7 @@ docstring stringifyFromCursor(DocIterator const & cur, int len)
|
|||||||
LYXERR(Debug::FIND, "Stringifying with cur: "
|
LYXERR(Debug::FIND, "Stringifying with cur: "
|
||||||
<< cur << ", from pos: " << cur.pos() << ", end: " << end);
|
<< cur << ", from pos: " << cur.pos() << ", end: " << end);
|
||||||
return par.asString(cur.pos(), end,
|
return par.asString(cur.pos(), end,
|
||||||
AS_STR_INSETS | AS_STR_PLAINTEXT,
|
AS_STR_INSETS | AS_STR_SKIPDELETE | AS_STR_PLAINTEXT,
|
||||||
&runparams);
|
&runparams);
|
||||||
} else if (cur.inMathed()) {
|
} else if (cur.inMathed()) {
|
||||||
docstring s;
|
docstring s;
|
||||||
|
Loading…
Reference in New Issue
Block a user