mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 11:32:21 +00:00
Fixed issue #8543 also for advanced search (cursor moved at proper end of selection before starting Find Advanced operation).
This commit is contained in:
parent
be96eec1c8
commit
1129eb0342
@ -1422,6 +1422,9 @@ bool findAdv(BufferView * bv, FindAndReplaceOptions const & opt)
|
||||
|
||||
try {
|
||||
MatchStringAdv matchAdv(bv->buffer(), opt);
|
||||
int length = bv->cursor().selectionEnd().pos() - bv->cursor().selectionBegin().pos();
|
||||
if (length > 0)
|
||||
bv->putSelectionAt(bv->cursor().selectionBegin(), length, !opt.forward);
|
||||
findAdvReplace(bv, opt, matchAdv);
|
||||
cur = bv->cursor();
|
||||
if (opt.forward)
|
||||
|
@ -214,6 +214,8 @@ What's new
|
||||
- Fixed problem when searching with regular expressions and ignore
|
||||
format off (bug 8382).
|
||||
|
||||
- Cursor moved at proper end of selection before starting Find Advanced operation (fixing issue #8543 for advanced search)
|
||||
|
||||
|
||||
* BUILD/INSTALLATION
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user