From cda8520e7f72f58926a0cf135f75df33108949a8 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 2 May 2022 21:55:55 +0800 Subject: [PATCH] fix(vimchat): fix highlight firstline --- bundle/vim-chat/autoload/chat/windows.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle/vim-chat/autoload/chat/windows.vim b/bundle/vim-chat/autoload/chat/windows.vim index 53f9b20eb..35c58eeae 100644 --- a/bundle/vim-chat/autoload/chat/windows.vim +++ b/bundle/vim-chat/autoload/chat/windows.vim @@ -242,7 +242,7 @@ function! s:high_pso(l, c, rl, rc) abort let start_col = 41 if rl > 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 " if there are more than two lines if rl - l >= 2 @@ -267,7 +267,7 @@ function! s:high_pso(l, c, rl, rc) abort " let c = _c let [l, c, rl, rc] = [rl, rc, l, c] 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 " if there are more than two lines if rl - l >= 2