-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Handle missing ORA_bin variable
- Loading branch information
1 parent
92b9905
commit 200aebf
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
200aebf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm new to viml so I'm not sure I understand the difference between checking the var vs checking get(g:,var). Is this in case the global var doesn't exist? I tested with it assigned and unassigned.
200aebf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@walkabout21 you probably have it defined somewhere by another plugin.
Difference is that
get()
handles the situation where variable is missing, while doingg:var
expects it to be defined.200aebf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I'll keep that in mind for the future.