mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibLine: Make ^R search match the input anywhere in a given line
This is closer to what other line editors (and shells) do, and makes ^R actually useful.
This commit is contained in:
parent
da56e208ef
commit
da1b080935
Notes:
sideshowbarker
2024-07-19 02:51:18 +09:00
Author: https://github.com/alimpfard
Commit: da1b080935
Pull-request: https://github.com/SerenityOS/serenity/pull/3415
Issue: https://github.com/SerenityOS/serenity/issues/3413
3 changed files with 5 additions and 4 deletions
|
@ -300,7 +300,7 @@ private:
|
|||
|
||||
Style find_applicable_style(size_t offset) const;
|
||||
|
||||
bool search(const StringView&, bool allow_empty = false);
|
||||
bool search(const StringView&, bool allow_empty = false, bool from_beginning = true);
|
||||
inline void end_search()
|
||||
{
|
||||
m_is_searching = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue