We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cc8e2e commit 6558938Copy full SHA for 6558938
editor/popupmenu.go
@@ -434,9 +434,12 @@ func (p *PopupMenu) setWidgetSize() {
434
height := p.itemNum*(lineHeight+editor.config.Editor.Linespace+2) + 2 + editor.iconSize*2/5
435
p.widget.SetFixedSize2(width, height)
436
437
+ rows := float64(width) / p.ws.font.cellwidth
438
+ cols := float64(height) / float64(p.ws.font.lineHeight)
439
+
440
p.ws.nvim.SetPumBounds(
- float64(width),
- float64(height),
441
+ rows,
442
+ cols,
443
float64(p.row),
444
float64(p.col),
445
)
0 commit comments