Remove unneeded function indirection
This commit is contained in:
parent
f32b69033b
commit
b468a27940
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user