on master help sign in
Use `^` and `$` to match the beginning and end of a line when searching (#1790)

Fixes #1737 Signed-off-by: nibon7 <nibon7@163.com>

commit43997f1936d337a1a4248c98bff360ff9b4a3afc authornibon7 <nibon7@163.com> dateSat 12 Mar 2022, 15:05 (5 years ago) parent61828ea
2 files changed+2
helix-term/src/commands.rs+1 helix-term/src/ui/mod.rs+1
helix-term/src/commands.rs+1
@@ -1642,6 +1642,7 @@ fn search_next_or_prev_impl(cx: &mut Context, movement: Movement, direction: Dir
16421642 let wrap_around = search_config.wrap_around;
16431643 if let Ok(regex) = RegexBuilder::new(query)
16441644 .case_insensitive(case_insensitive)
1645+ .multi_line(true)
16451646 .build()
16461647 {
16471648 search_impl(
helix-term/src/ui/mod.rs+1
@@ -73,6 +73,7 @@ pub fn regex_prompt(
7373
7474 match RegexBuilder::new(input)
7575 .case_insensitive(case_insensitive)
76+ .multi_line(true)
7677 .build()
7778 {
7879 Ok(regex) => {