aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorCole Helbling2021-11-13 04:15:41 +0000
committerGitHub2021-11-13 04:15:41 +0000
commitb824e091a948c076a428fb981cd5be2929378533 (patch)
tree99098b6854fbf6332cfdea5b1c6089e246eaedfd /helix-view
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-view')
-rw-r--r--helix-view/src/document.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 80f6a740..6b429151 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -25,6 +25,8 @@ const BUF_SIZE: usize = 8192;
const DEFAULT_INDENT: IndentStyle = IndentStyle::Spaces(4);
+pub const SCRATCH_BUFFER_NAME: &str = "[scratch]";
+
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum Mode {
Normal,