aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorjorge2023-04-27 19:57:05 +0000
committerGitHub2023-04-27 19:57:05 +0000
commit204d1eba4b1bb09d2e861986d6b6e8b868d16afe (patch)
treeaefc7c1bcd504df89143afacfceb549f5a150fc9 /helix-core
parent9cdc6b2e8a0193881297e15641cd801384cd8865 (diff)
feat(commands): add clear-register typable command (#5695)
Co-authored-by: Jorge <chorcheus@tutanota.com>
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/register.rs8
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)
+ }
}