File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def __init__(self, nvim):
33
33
self ._notification_handlers = {}
34
34
self ._request_handlers = {
35
35
'poll' : lambda : 'ok' ,
36
- 'specs' : lambda path : self ._specs . get ( path , []) ,
36
+ 'specs' : self ._on_specs_request ,
37
37
'shutdown' : self .shutdown
38
38
}
39
39
self ._nvim_encoding = nvim .options ['encoding' ]
@@ -156,6 +156,11 @@ def predicate(o):
156
156
if specs :
157
157
self ._specs [plugin_path ] = specs
158
158
159
+ def _on_specs_request (self , path ):
160
+ if IS_PYTHON3 and isinstance (path , bytes ):
161
+ path = path .decode (self ._nvim_encoding )
162
+ return self ._specs .get (path , [])
163
+
159
164
def _configure_nvim_for (self , obj ):
160
165
# Configure a nvim instance for obj(checks encoding configuration)
161
166
nvim = self .nvim
You can’t perform that action at this time.
0 commit comments