Skip to content

Commit

Permalink
Merge pull request #3652 from shrekwang/master
Browse files Browse the repository at this point in the history
guarding s:sign_place function to avoid exception.
  • Loading branch information
bhcleek authored Mar 24, 2024
2 parents 3116272 + 1bc8bca commit 4ed8df7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autoload/go/debug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ed8df7

Please sign in to comment.