mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 10:40:04 +08:00
fix(format): check formatted_context and stdin
This commit is contained in:
parent
c9fd7f91c7
commit
ccfc031441
@ -37,7 +37,7 @@ local function on_exit(id, code, single)
|
|||||||
else
|
else
|
||||||
formatted_context = stdout
|
formatted_context = stdout
|
||||||
end
|
end
|
||||||
if table.concat(stdout, '\n') == table.concat(current_task.stdin, '\n') then
|
if table.concat(formatted_context, '\n') == table.concat(current_task.stdin, '\n') then
|
||||||
util.msg('no necessary changes')
|
util.msg('no necessary changes')
|
||||||
else
|
else
|
||||||
util.msg((current_task.formatter.name or current_task.formatter.exe) .. ' formatted buffer')
|
util.msg((current_task.formatter.name or current_task.formatter.exe) .. ' formatted buffer')
|
||||||
|
Loading…
Reference in New Issue
Block a user