Skip to content

Commit

Permalink
Fix to notify correct external pum information to Neovim side. (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
akiyosi committed Jul 15, 2022
1 parent 1cc8e2e commit 6558938
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions editor/popupmenu.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,12 @@ func (p *PopupMenu) setWidgetSize() {
height := p.itemNum*(lineHeight+editor.config.Editor.Linespace+2) + 2 + editor.iconSize*2/5
p.widget.SetFixedSize2(width, height)

rows := float64(width) / p.ws.font.cellwidth
cols := float64(height) / float64(p.ws.font.lineHeight)

p.ws.nvim.SetPumBounds(
float64(width),
float64(height),
rows,
cols,
float64(p.row),
float64(p.col),
)
Expand Down

0 comments on commit 6558938

Please sign in to comment.