1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:30:07 +08:00
This commit is contained in:
wsdjeg 2018-03-27 21:32:00 +08:00
parent e21dbf51b7
commit d664998606

View File

@ -10,8 +10,9 @@ let s:self.id = []
let s:self._STRING = SpaceVim#api#import('data#string')
function! s:self.info(line, col, message) abort
let chars = self._STRING.string2chars(self._STRING.strQ2B(a:message))
let chars = [' '] + chars
for index in range(len(chars))
call add(self.id, matchaddpos('Conceal', [[a:line, a:col + index, 1]], 10, -1, {'conceal' : chars[index]}))
call add(self.id, matchaddpos('Conceal', [[a:line, a:col - 1 + index, 1]], 10, -1, {'conceal' : chars[index]}))
endfor
endfunction