mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
find: give status message when auto-wrapping
When auto-wrap is enabled, it is sometimes informative to know when the search wraps. A status message is consistent with LibreOffice and Vim.
This commit is contained in:
parent
abc65d4700
commit
47b0c33820
@ -359,6 +359,12 @@ bool findOne(BufferView * bv, docstring const & searchstr,
|
||||
bv->cursor().setCursor(doc_iterator_end(&bv->buffer()));
|
||||
bv->cursor().backwardPos();
|
||||
}
|
||||
if (auto_wrap) {
|
||||
docstring const msg = forward
|
||||
? _("Search reached end of document, continuing from beginning.")
|
||||
: _("Search reached beginning of document, continuing from end.");
|
||||
bv->message(msg);
|
||||
}
|
||||
bv->clearSelection();
|
||||
if (findOne(bv, searchstr, case_sens, whole, forward,
|
||||
find_del, false, false, false, false))
|
||||
|
Loading…
Reference in New Issue
Block a user