Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pairtaghighliter: Remove a global variable
Remove use of the 'sci' global variable and instead pass it as an argument to each function requiring this data. The use of global variables makes code harder to understand and debug, and often leads to unexpected issues. Here, it lead to a crash when unloading the the plugin because an apparently innocent call used this global variable before its initialization. This was fixed in previous commit, but removing use of the global variable hopefully will prevent such bugs from reappearing later.
- Loading branch information
Showing
1 changed file
with
37 additions
and
43 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