mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
Fix peeking of files w/ spaces in pathnames. (#813)
This commit is contained in:
committed by
GitHub
parent
07d0f481cd
commit
2dc493318c
@@ -385,7 +385,7 @@ function! s:handle_location(ctx, server, type, data) abort "ctx = {counter, list
|
|||||||
echo 'Retrieved ' . a:type
|
echo 'Retrieved ' . a:type
|
||||||
botright copen
|
botright copen
|
||||||
else
|
else
|
||||||
let l:lines = readfile(fnameescape(l:loc['filename']))
|
let l:lines = readfile(l:loc['filename'])
|
||||||
if has_key(l:loc,'viewstart') " showing a locationLink
|
if has_key(l:loc,'viewstart') " showing a locationLink
|
||||||
let l:view = l:lines[l:loc['viewstart'] : l:loc['viewend']]
|
let l:view = l:lines[l:loc['viewstart'] : l:loc['viewend']]
|
||||||
call lsp#ui#vim#output#preview(a:server, l:view, {
|
call lsp#ui#vim#output#preview(a:server, l:view, {
|
||||||
|
|||||||
Reference in New Issue
Block a user