diff options
author | Benoît CORTIER | 2021-06-17 22:09:10 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-18 00:38:10 +0000 |
commit | 8664d70e731c73fa34dda293b4f6b6dec80a3273 (patch) | |
tree | 3535c4376533fb19323afc60a8d6d223326ace77 /helix-term/src/lib.rs | |
parent | f65db9397a2d832f7ef873ea416f13f8fb07cb74 (diff) |
Replace `Editor::current` by a macro
This is necessary to workaround ownership issues across function calls.
The issue notably arised when implementing the registers into `Editor`
and I was getting annoyed again when implementing copy/pasting into
system clipboard.
The problem is addressed by using macro calls instead of function calls.
There is no notable side effect.
Diffstat (limited to 'helix-term/src/lib.rs')
-rw-r--r-- | helix-term/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-term/src/lib.rs b/helix-term/src/lib.rs index 60190372..dc8ec38e 100644 --- a/helix-term/src/lib.rs +++ b/helix-term/src/lib.rs @@ -1,5 +1,8 @@ #![allow(unused)] +#[macro_use] +extern crate helix_view; + pub mod application; pub mod args; pub mod commands; |