Remove unneeded function indirection

This commit is contained in:
Marco Hinz 2019-08-13 21:48:22 +02:00
parent f32b69033b
commit b468a27940
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -130,13 +130,13 @@ function! sy#util#popup_create(hunkdiff) abort
let buf = nvim_create_buf(0, 1) let buf = nvim_create_buf(0, 1)
call nvim_buf_set_option(buf, 'syntax', 'diff') call nvim_buf_set_option(buf, 'syntax', 'diff')
call nvim_buf_set_lines(buf, 0, -1, 0, a:hunkdiff) 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', \ 'relative': 'cursor',
\ 'row': 0, \ 'row': 0,
\ 'col': 0, \ 'col': 0,
\ 'width': width, \ 'width': width,
\ 'height': height, \ 'height': height,
\ }]) \ })
call nvim_win_set_option(s:popup_window, 'cursorline', v:false) 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, 'foldenable', v:false)
call nvim_win_set_option(s:popup_window, 'number', v:false) call nvim_win_set_option(s:popup_window, 'number', v:false)