Skip to content

Commit ea56c7b

Browse files
committed
'previewheight' is global-only, don't imply otherwise
1 parent 3b95b3b commit ea56c7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugin/vim-erlang-tags.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ endfunction
8888

8989
" Because :pedit can't take height as count like :split does, ugh why.
9090
function! s:ExecWithPreviewHeight(cmd, height)
91-
let orig_height = &l:previewheight
92-
let &l:previewheight = a:height
91+
let orig_height = &previewheight
92+
let &previewheight = a:height
9393
execute a:cmd
94-
let &l:previewheight = orig_height
94+
let &previewheight = orig_height
9595
endfunction
9696

9797
function! VimErlangTagsDefineMappings()

0 commit comments

Comments
 (0)