Skip to content

Commit

Permalink
Fix comment (helix-editor#3334)
Browse files Browse the repository at this point in the history
  • Loading branch information
AceofSpades5757 authored and thomasskk committed Sep 9, 2022
1 parent 9c19378 commit 933ab8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions helix-view/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -576,9 +576,8 @@ 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
/// 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()
Expand Down

0 comments on commit 933ab8c

Please sign in to comment.