From def2b28d4e5ecfb4ce475c4b6cf355f33f71fa6f Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Fri, 28 Apr 2017 11:07:05 -0400 Subject: [PATCH] Differentiate between help buffers and log buffers Closes #636 --- cmd/micro/view.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/micro/view.go b/cmd/micro/view.go index 9e94578c..d0e597b0 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -11,15 +11,16 @@ import ( ) type ViewType struct { + kind int readonly bool // The file cannot be edited scratch bool // The file cannot be saved } var ( - vtDefault = ViewType{false, false} - vtHelp = ViewType{true, true} - vtLog = ViewType{true, true} - vtScratch = ViewType{false, true} + vtDefault = ViewType{0, false, false} + vtHelp = ViewType{1, true, true} + vtLog = ViewType{2, true, true} + vtScratch = ViewType{3, false, true} ) // The View struct stores information about a view into a buffer.