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:
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
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: