mirror of
https://github.com/nushell/nushell.git
synced 2024-12-17 20:51:57 +01:00
Change comments
This commit is contained in:
parent
0fe525de87
commit
9737d4a614
@ -375,7 +375,7 @@ impl<'a> StateWorkingSet<'a> {
|
|||||||
|
|
||||||
if let Some(decl_id) = scope.decls.get(name) {
|
if let Some(decl_id) = scope.decls.get(name) {
|
||||||
if !hiding.contains(decl_id) {
|
if !hiding.contains(decl_id) {
|
||||||
// Do not hide already hidden decl
|
// Hide decl only if it's not already hidden
|
||||||
last_scope_frame.hiding.insert(*decl_id);
|
last_scope_frame.hiding.insert(*decl_id);
|
||||||
return Some(*decl_id);
|
return Some(*decl_id);
|
||||||
}
|
}
|
||||||
@ -409,8 +409,6 @@ impl<'a> StateWorkingSet<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn activate_overlay(&mut self, overlay: Vec<(Vec<u8>, DeclId)>) {
|
pub fn activate_overlay(&mut self, overlay: Vec<(Vec<u8>, DeclId)>) {
|
||||||
// TODO: This will overwrite all existing definitions in a scope. When we add deactivate,
|
|
||||||
// we need to re-think how make it recoverable.
|
|
||||||
let scope_frame = self
|
let scope_frame = self
|
||||||
.delta
|
.delta
|
||||||
.scope
|
.scope
|
||||||
|
Loading…
Reference in New Issue
Block a user