]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
fix: error in diags display
authorycycyyc <944696498@qq.com>
Mon, 27 Mar 2023 11:07:12 +0000 (19:07 +0800)
committerycycyyc <944696498@qq.com>
Mon, 27 Mar 2023 11:14:07 +0000 (19:14 +0800)
autoload/lsp/diag.vim

index 9f5d641dc73fad7771c8b771549592eddeb1dbcd..c6017a7e77308c45e81455bf276d7dc8213aed9e 100644 (file)
@@ -352,6 +352,7 @@ export def LspDiagsJump(lspserver: dict<any>, which: string): void
 
   if which == 'first'
     setcursorcharpos(diags[0].range.start.line + 1, diags[0].range.start.character + 1)
+    :redraw
     DisplayDiag(diags[0])
     return
   endif
@@ -368,6 +369,7 @@ export def LspDiagsJump(lspserver: dict<any>, which: string): void
                                                        && col < curcol))
          || (which == 'here' && (lnum == curlnum && col >= curcol))
       setcursorcharpos(lnum, col)
+      :redraw
       DisplayDiag(diag)
       return
     endif