Nvim: fix off-by-one

This commit is contained in:
Marco Hinz 2019-08-14 15:48:08 +02:00
parent f813d66d47
commit cd155d3edc
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -134,7 +134,7 @@ function! sy#util#popup_create(hunkdiff) abort
\ 'relative': 'win', \ 'relative': 'win',
\ 'row': winline(), \ 'row': winline(),
\ 'col': offset - 1, \ 'col': offset - 1,
\ 'width': winwidth('%') - offset, \ 'width': winwidth('%') - offset + 1,
\ '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)