Skip to content

Commit

Permalink
fix(handler): fix echo_signature, fix #289
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed Dec 21, 2018
1 parent 5d00084 commit 95c6e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/coc/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function! s:echo_signature(parts)
let text = get(part, 'text', '')
if !empty(text)
execute 'echohl '.hl
execute "echon '".text."'"
execute "echon '".substitute(text, "'", "''", 'g')."'"
echohl None
endif
endfor
Expand Down
1 change: 1 addition & 0 deletions src/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ class Languages {
if (visible) {
// vim have no suppport for update complete item
let str = resolving.detail ? resolving.detail.trim() : ''
str = str.replace(/\n\s*/g, ' ')
if (str) echoMessage(this.nvim, str)
let doc = complete.getDocumentation(resolving)
if (doc) str += '\n\n' + doc
Expand Down

0 comments on commit 95c6e09

Please sign in to comment.