Simplify IsDirty check

This commit is contained in:
Zachary Yedidia
2016-05-14 12:04:13 -04:00
parent 29ae840413
commit e2efc963b7
6 changed files with 105 additions and 126 deletions

View File

@@ -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

View File

@@ -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