making sure that select marks were set before attempting to extract text
This commit is contained in:
parent
0c79384529
commit
0ff9dc5f9e
1 changed files with 4 additions and 0 deletions
|
|
@ -532,6 +532,10 @@ function! vimspector#ShowTooltipForSelection() range abort
|
||||||
" retrive the lines selected in visual mode
|
" retrive the lines selected in visual mode
|
||||||
let lines = getbufline(bufnr('%'), start[0], end[0])
|
let lines = getbufline(bufnr('%'), start[0], end[0])
|
||||||
|
|
||||||
|
if(len(lines) < 1)
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
" make sure the leave only the parts we care about if multiple lines are
|
" make sure the leave only the parts we care about if multiple lines are
|
||||||
" selected
|
" selected
|
||||||
let lines[0] = strcharpart(lines[0], start[1])
|
let lines[0] = strcharpart(lines[0], start[1])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue