Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helix-term/commands: move SCRATCH_BUFFER_NAME to helix-view/document #1091

Merged
merged 1 commit into from
Nov 13, 2021

Conversation

cole-h
Copy link
Contributor

@cole-h cole-h commented Nov 13, 2021

This way, the name is accessible everywhere Document and related types
are.


While working on #1035, I needed the name of the scratch buffer. However, since the const is defined in helix-term and not helix-view, I have no way to access it. This PR moves the const to helix-view/src/document.rs so that the const is accessible everywhere Document and related types are.

(I didn't think the original placement through, sorry. I swear, I'm not trying to pad my PR stats :P)

This way, the name is accessible everywhere `Document` and related types
are.
@archseer archseer merged commit b824e09 into helix-editor:master Nov 13, 2021
@cole-h cole-h deleted the const-scratch-buffer-2 branch November 13, 2021 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants