From 3a163017e3040ee07fb415f02087c64b8b7bf151 Mon Sep 17 00:00:00 2001 From: Rolo Date: Sat, 29 Mar 2025 08:13:51 -0700 Subject: [PATCH] fix(crossterm): When no `terminfo` check if `WezTerm` for undercurl --- helix-tui/src/backend/crossterm.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helix-tui/src/backend/crossterm.rs b/helix-tui/src/backend/crossterm.rs index e8947ee08..5c5bafded 100644 --- a/helix-tui/src/backend/crossterm.rs +++ b/helix-tui/src/backend/crossterm.rs @@ -77,7 +77,8 @@ impl Capabilities { pub fn from_env_or_default(config: &EditorConfig) -> Self { match termini::TermInfo::from_env() { Err(_) => Capabilities { - has_extended_underlines: config.undercurl, + has_extended_underlines: config.undercurl + || matches!(term_program().as_deref(), Some("WezTerm")), ..Capabilities::default() }, Ok(t) => Capabilities {