mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-17 20:40:26 +09:00
Merge pull request #665 from tommyshem/viewtype-check
before saving check for view type and if scratch is true then do not save
This commit is contained in:
@@ -757,8 +757,8 @@ func (v *View) Save(usePlugin bool) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if v.Type == vtHelp {
|
||||
// We can't save the help text
|
||||
if v.Type.scratch == true {
|
||||
// We can't save any view type with scratch set. eg help and log text
|
||||
return false
|
||||
}
|
||||
// If this is an empty buffer, ask for a filename
|
||||
|
||||
Reference in New Issue
Block a user