Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Commitdefa4e5

Browse files
committed
check vim_get_api_info later
1 parent27b71c8 commitdefa4e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎pythonx/neovim_rpc_server.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,12 @@ def process_pending_requests():
389389
# item==None means the queue is empty
390390
break
391391

392-
def_process_request(channel,method,args):
393-
ifmethodin ['vim_get_api_info','nvim_get_api_info']:
392+
def_process_request(channel,method,args):
393+
ifhasattr(neovim_rpc_methods,method):
394+
returngetattr(neovim_rpc_methods,method)(*args)
395+
elifmethodin ['vim_get_api_info','nvim_get_api_info']:
394396
# the first request sent by neovim python client
395397
return [channel,neovim_rpc_server_api_info.API_INFO]
396-
ifhasattr(neovim_rpc_methods,method):
397-
returngetattr(neovim_rpc_methods,method)(*args)
398398
else:
399399
logger.error("method %s not implemented",method)
400400
vim_error("rpc method [%s] not implemented in pythonx/neovim_rpc_methods.py. Please send PR or contact the mantainer."%method)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp