Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/mod.rs')
| -rw-r--r-- | helix-term/src/ui/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 3aec7e85..ac5e51f1 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -126,11 +126,13 @@ pub fn raw_regex_prompt( false }; + let is_crlf = doc!(cx.editor).line_ending == helix_core::LineEnding::Crlf; match rope::RegexBuilder::new() .syntax( rope::Config::new() .case_insensitive(case_insensitive) - .multi_line(true), + .multi_line(true) + .crlf(is_crlf), ) .build(input) { |