diff --git a/autoload/SpaceVim/layers/checkers.vim b/autoload/SpaceVim/layers/checkers.vim index 95e4200db..c2ed3417c 100644 --- a/autoload/SpaceVim/layers/checkers.vim +++ b/autoload/SpaceVim/layers/checkers.vim @@ -159,11 +159,19 @@ function! s:jump_to_next_error() abort lnext catch try - cnext + ll catch - echohl WarningMsg - echon 'There is no errors!' - echohl None + try + cnext + catch + try + cc + catch + echohl WarningMsg + echon 'There is no errors!' + echohl None + endtry + endtry endtry endtry endfunction @@ -173,11 +181,19 @@ function! s:jump_to_previous_error() abort lprevious catch try - cprevious + ll catch - echohl WarningMsg - echon 'There is no errors!' - echohl None + try + cprevious + catch + try + cc + catch + echohl WarningMsg + echon 'There is no errors!' + echohl None + endtry + endtry endtry endtry endfunction diff --git a/autoload/SpaceVim/layers/lsp.vim b/autoload/SpaceVim/layers/lsp.vim index 683db5930..670753970 100644 --- a/autoload/SpaceVim/layers/lsp.vim +++ b/autoload/SpaceVim/layers/lsp.vim @@ -162,11 +162,19 @@ function! s:jump_to_next_error() abort lnext catch try - cnext + ll catch - echohl WarningMsg - echon 'There is no errors!' - echohl None + try + cnext + catch + try + cc + catch + echohl WarningMsg + echon 'There is no errors!' + echohl None + endtry + endtry endtry endtry endfunction @@ -176,11 +184,19 @@ function! s:jump_to_previous_error() abort lprevious catch try - cprevious + ll catch - echohl WarningMsg - echon 'There is no errors!' - echohl None + try + cprevious + catch + try + cc + catch + echohl WarningMsg + echon 'There is no errors!' + echohl None + endtry + endtry endtry endtry endfunction