mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-20 15:57:10 +09:00
Simplify IsDirty check
This commit is contained in:
@@ -6,7 +6,7 @@ if GetOption("gofmt") == nil then
|
||||
end
|
||||
|
||||
function go_onSave()
|
||||
if view.Buf.Filetype == "Go" then
|
||||
if view.Buf.FileType == "Go" then
|
||||
if GetOption("goimports") then
|
||||
go_goimports()
|
||||
elseif GetOption("gofmt") then
|
||||
|
||||
Reference in New Issue
Block a user