win_opts = { relative = 'win' } is buggy
Closed this issue · 2 comments
savchenko commented
Trying to understand the root cause of #603, I have found that relative = 'win'
causes plugin to recursively reduce size of the popup when enabling/disabling the preview:
popup = {
win_opts = {
relative = 'win'
}
}
It looks pretty wild :) See below:
output.mp4
savchenko commented
Also, with win_opts = { relative = 'editor' }
, first call draws the the popup as expected - at the centre. However disabling the preview immediately moves pop-up to the NW corner.
linrongbin16 commented
hi @savchenko ,
I fixed this issue in #691 , please have a try!