Skip to content

Commit

Permalink
Use "vim" prefix for option keys
Browse files Browse the repository at this point in the history
  • Loading branch information
citizenmatt committed Jan 4, 2024
1 parent ef67b86 commit d9f7e5c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ public abstract class VimOptionGroupBase : VimOptionGroup {
*/
private class OptionStorage {
private val globalValues = mutableMapOf<String, VimDataType>()
private val perWindowGlobalOptionsKey = Key<MutableMap<String, VimDataType>>("perWindowGlobalOptions")
private val localOptionsKey = Key<MutableMap<String, VimDataType>>("localOptions")
private val perWindowGlobalOptionsKey = Key<MutableMap<String, VimDataType>>("vimPerWindowGlobalOptions")
private val localOptionsKey = Key<MutableMap<String, VimDataType>>("vimLocalOptions")

fun <T : VimDataType> getOptionValue(option: Option<T>, scope: OptionAccessScope): T = when (scope) {
is OptionAccessScope.EFFECTIVE -> getEffectiveValue(option, scope.editor)
Expand Down

0 comments on commit d9f7e5c

Please sign in to comment.