diff options
Diffstat (limited to 'helix-core/src')
-rw-r--r-- | helix-core/src/register.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-core/src/register.rs b/helix-core/src/register.rs index 52eb6e3e..df68a759 100644 --- a/helix-core/src/register.rs +++ b/helix-core/src/register.rs @@ -78,4 +78,12 @@ impl Registers { pub fn inner(&self) -> &HashMap<char, Register> { &self.inner } + + pub fn clear(&mut self) { + self.inner.clear(); + } + + pub fn remove(&mut self, name: char) -> Option<Register> { + self.inner.remove(&name) + } } |