mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 12:50:04 +08:00
fix(vimchat): fix highlight firstline
This commit is contained in:
parent
644107a3cd
commit
cda8520e7f
@ -242,7 +242,7 @@ function! s:high_pso(l, c, rl, rc) abort
|
|||||||
let start_col = 41
|
let start_col = 41
|
||||||
if rl > l
|
if rl > l
|
||||||
if c < strlen(getline(l))
|
if c < strlen(getline(l))
|
||||||
call s:CMP.matchaddpos('Visual', [[l, max([c - 1, start_col]), strlen(getline(l)) - c]])
|
call s:CMP.matchaddpos('Visual', [[l, max([c - 1, start_col]), strlen(getline(l)) - c + 2]])
|
||||||
endif
|
endif
|
||||||
" if there are more than two lines
|
" if there are more than two lines
|
||||||
if rl - l >= 2
|
if rl - l >= 2
|
||||||
@ -267,7 +267,7 @@ function! s:high_pso(l, c, rl, rc) abort
|
|||||||
" let c = _c
|
" let c = _c
|
||||||
let [l, c, rl, rc] = [rl, rc, l, c]
|
let [l, c, rl, rc] = [rl, rc, l, c]
|
||||||
if c < strlen(getline(l))
|
if c < strlen(getline(l))
|
||||||
call s:CMP.matchaddpos('Visual', [[l, max([c - 1, start_col]), strlen(getline(l)) - c]])
|
call s:CMP.matchaddpos('Visual', [[l, max([c - 1, start_col]), strlen(getline(l)) - c + 2]])
|
||||||
endif
|
endif
|
||||||
" if there are more than two lines
|
" if there are more than two lines
|
||||||
if rl - l >= 2
|
if rl - l >= 2
|
||||||
|
Loading…
Reference in New Issue
Block a user