From b468a2794035759aff7e6a02fcd0c2744b6d826a Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 13 Aug 2019 21:48:22 +0200 Subject: [PATCH] Remove unneeded function indirection --- autoload/sy/util.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/sy/util.vim b/autoload/sy/util.vim index 32dec25..6a1f738 100644 --- a/autoload/sy/util.vim +++ b/autoload/sy/util.vim @@ -130,13 +130,13 @@ function! sy#util#popup_create(hunkdiff) abort let buf = nvim_create_buf(0, 1) call nvim_buf_set_option(buf, 'syntax', 'diff') call nvim_buf_set_lines(buf, 0, -1, 0, a:hunkdiff) - let s:popup_window = call('nvim_open_win', [buf, v:false, { + let s:popup_window = nvim_open_win(buf, v:false, { \ 'relative': 'cursor', \ 'row': 0, \ 'col': 0, \ 'width': width, \ 'height': height, - \ }]) + \ }) call nvim_win_set_option(s:popup_window, 'cursorline', v:false) call nvim_win_set_option(s:popup_window, 'foldenable', v:false) call nvim_win_set_option(s:popup_window, 'number', v:false)