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

ensure fmt list gets closed when title cannot be checked #1474

Merged
merged 1 commit into from
Oct 3, 2017

Conversation

bhcleek
Copy link
Collaborator

@bhcleek bhcleek commented Sep 24, 2017

Fixes #1423

else
let l:list_title = getloclist(0, {'title': 1})
" can't check the title, so assume that the list was for go fmt.
let l:list_title = {'title': 'Format'}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work if you you do not have patch-7.4-2200, as l:listtype is unset, and is referenced on lines 146 / 147 below.

Add: let l:listtype = "locationlist" here to resolve the issue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jthurman42. It should be resolved now.

@fatih fatih merged commit e3725d4 into fatih:master Oct 3, 2017
@bhcleek bhcleek deleted the close-gofmt-list-vim7.4 branch October 8, 2017 18:26
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.

3 participants