Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(util): preview failed to show chunkInfo in Vim8 #801

Merged
merged 1 commit into from
May 23, 2019
Merged

fix(util): preview failed to show chunkInfo in Vim8 #801

merged 1 commit into from
May 23, 2019

Conversation

voldikss
Copy link
Contributor

@voldikss voldikss commented May 23, 2019

我发现在此处传给 preview_info 函数的参数已经是一个列表了

coc-git/src/manager.ts:

this.nvim.call('coc#util#preview_info', [lines], true)
  setl nofoldenable
  let lines = split(a:info, "\n")
  call append(0, lines)
  exe "normal! z" . len(lines) . "\<cr>"

这里却又将其当作字符串

@voldikss
Copy link
Contributor Author

感觉 coc#util#preview_info 这个函数接受列表作为参数比字符串参数处理起来明了,我就没在 coc-git 处改,直接在这改了。

@chemzqm chemzqm merged commit 86f938d into neoclide:master May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants