Skip to content

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

Open
Subjective wants to merge 2 commits intokevinhwang91:mainfrom
Subjective:fix-winleave-error
Open

fix(qfwin): add nil check for object in winleave autocmd#120
Subjective wants to merge 2 commits intokevinhwang91:mainfrom
Subjective:fix-winleave-error

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