mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Revert "Revert "Migrate most uses of the Span concept to Tag""
This reverts commit bee7c5639c
.
This commit is contained in:
@ -29,10 +29,10 @@ impl WholeStreamCommand for Shells {
|
||||
|
||||
fn shells(args: CommandArgs, _registry: &CommandRegistry) -> Result<OutputStream, ShellError> {
|
||||
let mut shells_out = VecDeque::new();
|
||||
let span = args.call_info.name_span;
|
||||
let tag = args.call_info.name_tag;
|
||||
|
||||
for (index, shell) in args.shell_manager.shells.lock().unwrap().iter().enumerate() {
|
||||
let mut dict = TaggedDictBuilder::new(Tag::unknown_origin(span));
|
||||
let mut dict = TaggedDictBuilder::new(tag);
|
||||
|
||||
if index == args.shell_manager.current_shell {
|
||||
dict.insert(" ", "X".to_string());
|
||||
|
Reference in New Issue
Block a user