From c09bad5b591edc5983de2595fdf390d31722ba24 Mon Sep 17 00:00:00 2001 From: Shafkath Shuhan Date: Tue, 5 Apr 2022 21:34:40 -0400 Subject: [PATCH] account for unicode-lines feaure in line-ending doc --- helix-term/src/commands/typed.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 4ccfe664defbd..e2cb0a4e9b599 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1132,6 +1132,9 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[ TypableCommand { name: "line-ending", aliases: &[], + #[cfg(not(feature = "unicode-lines"))] + doc: "Set the document's default line ending. Options: crlf, lf.", + #[cfg(feature = "unicode-lines")] doc: "Set the document's default line ending. Options: crlf, lf, cr, ff, nel.", fun: set_line_ending, completer: None,