Fix peeking of files w/ spaces in pathnames. (#813)

This commit is contained in:
Lucio Andrés Illanes Albornoz
2020-06-10 07:55:57 +02:00
committed by GitHub
parent 07d0f481cd
commit 2dc493318c

View File

@@ -385,7 +385,7 @@ function! s:handle_location(ctx, server, type, data) abort "ctx = {counter, list
echo 'Retrieved ' . a:type
botright copen
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
let l:view = l:lines[l:loc['viewstart'] : l:loc['viewend']]
call lsp#ui#vim#output#preview(a:server, l:view, {