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

error in line 11 of vim.psm1 #2

Closed
pemo11 opened this issue Apr 25, 2024 · 1 comment
Closed

error in line 11 of vim.psm1 #2

pemo11 opened this issue Apr 25, 2024 · 1 comment

Comments

@pemo11
Copy link

pemo11 commented Apr 25, 2024

One more PowerShell syntax I have not seen before and which should not work and gives me an error when trying to load the module:

return $this.ErrorLines && $this.ErrorLines.Count -gt 0

Since its not about chaining two commands together you would have to use -and for combining two conditions and you have probably put the second condition in braces because of the -gt operator.

return $this.ErrorLines -and ($this.ErrorLines.Count -gt 0)
@pemo11
Copy link
Author

pemo11 commented Apr 25, 2024

I didn't realize that the current version of this module does not work with Windows PowerShell (who uses VIM on Windows anyway;)

@pemo11 pemo11 closed this as completed Apr 25, 2024
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

No branches or pull requests

1 participant