FIx incorrectly spelled cfg options (#10703)

* Fix incorrect cfg key for wasm32

* Fix unicode-lines cfg in helix-view not not being used
This commit is contained in:
Christopher Smyth 2024-05-07 12:14:02 -04:00 committed by GitHub
parent 5b8b2f4b9b
commit 5e3de68591
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 4 deletions

View file

@ -14,7 +14,7 @@ homepage.workspace = true
[features]
default = ["git"]
unicode-lines = ["helix-core/unicode-lines"]
unicode-lines = ["helix-core/unicode-lines", "helix-view/unicode-lines"]
integration = ["helix-event/integration_test"]
git = ["helix-vcs/git"]

View file

@ -13,6 +13,7 @@ homepage.workspace = true
[features]
default = []
term = ["crossterm"]
unicode-lines = []
[dependencies]
helix-stdx = { path = "../helix-stdx" }

View file

@ -90,13 +90,13 @@ pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
}
}
#[cfg(target_os = "wasm32")]
#[cfg(target_arch = "wasm32")]
pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
// TODO:
Box::new(provider::FallbackProvider::new())
}
#[cfg(not(any(windows, target_os = "wasm32", target_os = "macos")))]
#[cfg(not(any(windows, target_arch = "wasm32", target_os = "macos")))]
pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
use helix_stdx::env::{binary_exists, env_var_is_set};
use provider::command::is_exit_success;

View file

@ -386,7 +386,7 @@ pub fn get_terminal_provider() -> Option<TerminalConfig> {
})
}
#[cfg(not(any(windows, target_os = "wasm32")))]
#[cfg(not(any(windows, target_arch = "wasm32")))]
pub fn get_terminal_provider() -> Option<TerminalConfig> {
use helix_stdx::env::{binary_exists, env_var_is_set};