diff --git a/autoload/go/debug.vim b/autoload/go/debug.vim index b27c565e68..523f4b36e9 100644 --- a/autoload/go/debug.vim +++ b/autoload/go/debug.vim @@ -1567,6 +1567,11 @@ function! s:sign_unplace(id, file) abort endfunction function! s:sign_place(id, expr, lnum) abort + " Check if lnum is less than 1 or expr is empty or null + if a:lnum < 1 || empty(a:expr) + return + endif + if !exists('*sign_place') exe 'sign place ' . a:id . ' line=' . a:lnum . ' name=godebugbreakpoint file=' . a:expr return