Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Allow no context for the `excerpt_context_lines` setting (#37982)

Finn Evers9875969cba1f
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index b731006a629..f2d5fd5762b 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -24432,5 +24432,5 @@ pub fn multibuffer_context_lines(cx: &App) -> u32 {
EditorSettings::try_get(cx)
.map(|settings| settings.excerpt_context_lines)
.unwrap_or(2)
- .clamp(1, 32)
+ .min(32)
}