mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-11 07:02:44 +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
|
||||
|
||||
@@ -4,7 +4,7 @@ end
|
||||
|
||||
function linter_onSave()
|
||||
if GetOption("linter") then
|
||||
local ft = view.Buf.Filetype
|
||||
local ft = view.Buf.FileType
|
||||
local file = view.Buf.Path
|
||||
local devnull = "/dev/null"
|
||||
if OS == "windows" then
|
||||
|
||||
Reference in New Issue
Block a user