Keybindings and invocation fix (#2186)

This commit is contained in:
Jonathan Turner
2020-07-15 19:51:59 +12:00
committed by GitHub
parent 7c0a830d84
commit 72f6513d2a
5 changed files with 442 additions and 1 deletions

View File

@ -197,7 +197,7 @@ async fn evaluate_invocation(
let input = InputStream::empty();
let mut block = block.clone();
block.set_is_last(true);
block.set_is_last(false);
let result = run_block(&block, &mut context, input, it, vars, env).await?;

View File

@ -42,6 +42,12 @@ pub fn nu(env: &IndexMap<String, String>, tag: impl Into<Tag>) -> Result<Value,
let config = crate::data::config::default_path()?;
nu_dict.insert_value("config-path", UntaggedValue::path(config).into_value(&tag));
let keybinding_path = crate::keybinding::keybinding_path()?;
nu_dict.insert_value(
"keybinding-path",
UntaggedValue::path(keybinding_path).into_value(&tag),
);
let history = History::path();
nu_dict.insert_value(
"history-path",