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.

Commitc5e8f3f

Browse files
committed
ignore function name error when passing function to client
roxma/nvim-yarp#18 (comment)
1 parenta18bf1c commitc5e8f3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎pythonx/neovim_rpc_protocol.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ def handler(obj):
6161
iftype(obj)==WINDOW_TYPE:
6262
returnmsgpack.ExtType(WINDOW_TYPE_ID,msgpack.packb(obj.number))
6363
iftype(obj)==vim.Function:
64-
returnobj.name
64+
try:
65+
returnobj.name.encode()
66+
exceptException:
67+
return""
6568
returnobj
6669
returnwalk(handler,msg)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp