This commit is contained in:
RoloEdits 2025-04-01 08:28:05 +02:00 committed by GitHub
commit a377dea379
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,8 @@ impl Capabilities {
pub fn from_env_or_default(config: &EditorConfig) -> Self { pub fn from_env_or_default(config: &EditorConfig) -> Self {
match termini::TermInfo::from_env() { match termini::TermInfo::from_env() {
Err(_) => Capabilities { Err(_) => Capabilities {
has_extended_underlines: config.undercurl, has_extended_underlines: config.undercurl
|| matches!(term_program().as_deref(), Some("WezTerm")),
..Capabilities::default() ..Capabilities::default()
}, },
Ok(t) => Capabilities { Ok(t) => Capabilities {