aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorCole Helbling2021-11-13 04:15:41 +0000
committerGitHub2021-11-13 04:15:41 +0000
commitb824e091a948c076a428fb981cd5be2929378533 (patch)
tree99098b6854fbf6332cfdea5b1c6089e246eaedfd /helix-term
parent6d4409c00ffd35fbb3f92d627a21845b931c609b (diff)
helix-term/commands: move SCRATCH_BUFFER_NAME to helix-view/document (#1091)
This way, the name is accessible everywhere `Document` and related types are.
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 48fd0ee0..d5a48c5f 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -13,7 +13,7 @@ use helix_core::{
use helix_view::{
clipboard::ClipboardType,
- document::Mode,
+ document::{Mode, SCRATCH_BUFFER_NAME},
editor::{Action, Motion},
input::KeyEvent,
keyboard::KeyCode,
@@ -53,8 +53,6 @@ use grep_searcher::{sinks, BinaryDetection, SearcherBuilder};
use ignore::{DirEntry, WalkBuilder, WalkState};
use tokio_stream::wrappers::UnboundedReceiverStream;
-pub const SCRATCH_BUFFER_NAME: &str = "[scratch]";
-
pub struct Context<'a> {
pub register: Option<char>,
pub count: Option<NonZeroUsize>,