From 8c88056dd7f79b23fcfc6c6d1de5e3a75d3f9f80 Mon Sep 17 00:00:00 2001 From: AceofSpades5757 <10341888+AceofSpades5757@users.noreply.github.com> Date: Thu, 4 Aug 2022 18:32:36 -0500 Subject: [PATCH 1/3] Fix comment --- helix-view/src/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index ab64f4850ad6..865888dd5dab 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -576,7 +576,7 @@ impl Document { } /// Detect the indentation used in the file, or otherwise defaults to the language indentation - /// configured in `languages.toml`, with a fallback to 4 space indentation if it isn't + /// configured in `languages.toml`, with a fallback to the default indentation if it isn't /// specified. Line ending is likewise auto-detected, and will fallback to the default OS /// line ending. pub fn detect_indent_and_line_ending(&mut self) { From ac3a8df609b2b945379eb66e634e968b45bb1b9a Mon Sep 17 00:00:00 2001 From: AceofSpades5757 <10341888+AceofSpades5757@users.noreply.github.com> Date: Thu, 4 Aug 2022 22:12:48 -0500 Subject: [PATCH 2/3] Fix comment --- helix-view/src/document.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 865888dd5dab..d833db3e3d7a 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -575,10 +575,10 @@ impl Document { } } + /// Detect the indentation used in the file, or otherwise defaults to the language indentation - /// configured in `languages.toml`, with a fallback to the default indentation if it isn't - /// specified. Line ending is likewise auto-detected, and will fallback to the default OS - /// line ending. + /// configured in `languages.toml`, with a fallback to tabs if it isn't specified. Line ending + /// is likewise auto-detected, and will fallback to the default OS line ending. pub fn detect_indent_and_line_ending(&mut self) { self.indent_style = auto_detect_indent_style(&self.text).unwrap_or_else(|| { self.language_config() From 0c164ee0ca7dc13709b80928e351ce07ced873a9 Mon Sep 17 00:00:00 2001 From: AceofSpades5757 <10341888+AceofSpades5757@users.noreply.github.com> Date: Fri, 5 Aug 2022 19:46:49 -0500 Subject: [PATCH 3/3] Run formatter --- helix-view/src/document.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index d833db3e3d7a..c96f222de856 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -575,7 +575,6 @@ impl Document { } } - /// Detect the indentation used in the file, or otherwise defaults to the language indentation /// configured in `languages.toml`, with a fallback to tabs if it isn't specified. Line ending /// is likewise auto-detected, and will fallback to the default OS line ending.