Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old goimports -srcdir workaround and fix :GoFmtAutoSaveToggle #1787

Merged
merged 1 commit into from
Apr 9, 2018
Merged

Conversation

arp242
Copy link
Contributor

@arp242 arp242 commented Apr 8, 2018

This check was added two years ago in #735. I think it's safe to remove
now? It doesn't really do any harm, but does simplify things a bit.

Also happened to notice that :GoFmtAutoSaveToggle was broken:

Error detected while processing function go#fmt#ToggleFmtAutoSave:
line 7:
E118: Too many arguments for function: go#config#FmtAutosave

So fix that as well.

@bhcleek
Copy link
Collaborator

bhcleek commented Apr 8, 2018

That flag isn't safe to remove; it's essential to how formatting with goimports works.

The :GoFmtAutoSaveToggle fix looks good to me, though.

This check was added two years ago in #735. I think it's safe to remove
now? It doesn't really do any harm, but does simplify things a bit.

Also happened to notice that `:GoFmtAutoSaveToggle` was broken:

  Error detected while processing function go#fmt#ToggleFmtAutoSave:
  line    7:
  E118: Too many arguments for function: go#config#FmtAutosave

So fix that as well.
@arp242
Copy link
Contributor Author

arp242 commented Apr 8, 2018

Looks like the call extend(cmd, ["-srcdir", a:target]) line got lost somehow >_< I intended to only remove the check for -srcdir support.

@bhcleek
Copy link
Collaborator

bhcleek commented Apr 9, 2018

lgtm

@bhcleek bhcleek merged commit 5ea799e into fatih:master Apr 9, 2018
@arp242 arp242 deleted the old branch April 9, 2018 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants