lsp-ui
lsp-ui copied to clipboard
`lsp-ui-doc-show` affects line number display width of `display-line-number-mode`
After lsp-ui shows doc in a separate graphical window, the width of line number will become unexpectedly bigger. Steps to reproduce the problem:
emacs -Q- Load lsp-mode, lsp-ui
- Open a file and enable lsp & lsp-ui.
- Trigger lsp-ui-doc-show.
M-x display-line-numbers-mode
The emacs window in the right side of the image below illustrates my problem, where the line number display width is bigger than that in the left side:

This problem is quite weird, and if I resize the window vertically, it all seems fine:

I still don't know the reason why but this is cause by function lsp-ui-doc--make-smaller-empty-lines using propertize with height less than 1. 😕