Fix: extra keys component does not load config files

This commit is contained in:
imkiva 2018-03-25 00:24:04 +08:00
parent ca2ae6bfea
commit 4b5a0a6372

View File

@ -62,7 +62,7 @@ class ExtraKeyComponent : ConfigFileBasedComponent<NeoExtraKey>(NeoTermPath.EKS_
extraKeys.clear()
File(baseDir)
.listFiles(NEOLANG_FILTER)
.filterNot { it.absolutePath != NeoTermPath.EKS_DEFAULT_FILE }
.filter { it.absolutePath != NeoTermPath.EKS_DEFAULT_FILE }
.mapNotNull { this.loadConfigure(it) }
.forEach {
registerShortcutKeys(it)