mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-24 18:36:18 +04:00
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:
parent
5b8b2f4b9b
commit
5e3de68591
@ -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"]
|
||||
|
||||
|
@ -13,6 +13,7 @@ homepage.workspace = true
|
||||
[features]
|
||||
default = []
|
||||
term = ["crossterm"]
|
||||
unicode-lines = []
|
||||
|
||||
[dependencies]
|
||||
helix-stdx = { path = "../helix-stdx" }
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user