Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/commands.rs')
| -rw-r--r-- | helix-term/src/commands.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 5c791303..eaf5d33f 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2409,11 +2409,13 @@ fn search_next_or_prev_impl(cx: &mut Context, movement: Movement, direction: Dir false }; let wrap_around = search_config.wrap_around; + let is_crlf = doc!(cx.editor).line_ending == LineEnding::Crlf; if let Ok(regex) = rope::RegexBuilder::new() .syntax( rope::Config::new() .case_insensitive(case_insensitive) - .multi_line(true), + .multi_line(true) + .crlf(is_crlf), ) .build(&query) { |