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

fix(qfwin): add nil check for object in winleave autocmd #120

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Subjective
Copy link
Contributor

Closes #108

Copy link

@shubhampaul shubhampaul left a comment

Choose a reason for hiding this comment

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

I would suggest you to not change more than what is required. In this case case changing quotes from single to double. Not only does it add unnecessary diffs but in this case it also changes the coding style from rest of the project (if you observe the quotes in other lua files).

@Subjective
Copy link
Contributor Author

@shubhampaul Yeah I had the wrong formatter set, it should be fixed now.

@@ -92,7 +92,9 @@ function QfSession:saveWinView(winid)
if winid then
local obj = self.pool[winid]
local wv = utils.winCall(winid, fn.winsaveview)
Copy link
Owner

Choose a reason for hiding this comment

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

winsaveview should be invoked after checking the nil condition.

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.

WinLeave error when opening Go tests in new tab
3 participants