mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-09 03:28:48 +00:00
77aeb6a2a8
Drop support for history file version 1. ParseExecutionContext no longer contains an OperationContext because in my first implementation, ParseExecutionContext didn't have interior mutability. We should probably try to add it back. Add a few to-do style comments. Search for "todo!" and "PORTING". Co-authored-by: Xiretza <xiretza@xiretza.xyz> (complete, wildcard, expand, history, history/file) Co-authored-by: Henrik Hørlück Berg <36937807+henrikhorluck@users.noreply.github.com> (builtins/set)
21 lines
873 B
Rust
21 lines
873 B
Rust
use crate::env::{EnvStack, Environment};
|
|
use crate::wchar::prelude::*;
|
|
use crate::wchar_ffi::WCharToFFI;
|
|
|
|
pub fn update_wait_on_escape_ms(vars: &EnvStack) {
|
|
let fish_escape_delay_ms = vars.get_unless_empty(L!("fish_escape_delay_ms"));
|
|
let is_empty = fish_escape_delay_ms.is_none();
|
|
let value = fish_escape_delay_ms
|
|
.map(|s| s.as_string().to_ffi())
|
|
.unwrap_or(L!("").to_ffi());
|
|
crate::ffi::update_wait_on_escape_ms_ffi(is_empty, &value);
|
|
}
|
|
|
|
pub fn update_wait_on_sequence_key_ms(vars: &EnvStack) {
|
|
let fish_sequence_key_delay_ms = vars.get_unless_empty(L!("fish_sequence_key_delay_ms"));
|
|
let is_empty = fish_sequence_key_delay_ms.is_none();
|
|
let value = fish_sequence_key_delay_ms
|
|
.map(|s| s.as_string().to_ffi())
|
|
.unwrap_or(L!("").to_ffi());
|
|
crate::ffi::update_wait_on_sequence_key_ms_ffi(is_empty, &value);
|
|
}
|