From: Indelog Date: Sun, 21 Nov 2021 10:30:03 +0000 (+0100) Subject: Fix deletebufline() end with $ X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c3733e42c19b4a08f5c0c9adc164f6c940a5929e;p=vim-lsp.git Fix deletebufline() end with $ --- diff --git a/autoload/handlers.vim b/autoload/handlers.vim index c624d83..709f755 100644 --- a/autoload/handlers.vim +++ b/autoload/handlers.vim @@ -336,7 +336,7 @@ def s:processHoverReply(lspserver: dict, req: dict, reply: dict): setlocal buftype=nofile setlocal bufhidden=delete exe 'setlocal ft=' .. reply.result.contents.kind - deletebufline(bufnr(), 1, getbufinfo(bufnr())[0].linecount) + deletebufline(bufnr(), 1, '$') append(0, hoverText) cursor(1, 1) wincmd p