Skip to content

Commit 6a0e44a

Browse files
fix: gate editor fallback by platform
1 parent 7fef316 commit 6a0e44a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/cortex-tui/src/external_editor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ pub fn get_editor() -> Result<String, EditorError> {
131131
}
132132
}
133133

134-
// Fallback
134+
// Fallback for Linux and other Unix-like targets.
135+
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
135136
Ok("vi".to_string())
136137
}
137138

0 commit comments

Comments
 (0)