lsp-ui icon indicating copy to clipboard operation
lsp-ui copied to clipboard

`lsp-ui-doc-show` affects line number display width of `display-line-number-mode`

Open UniverseFly opened this issue 3 years ago • 1 comments

After lsp-ui shows doc in a separate graphical window, the width of line number will become unexpectedly bigger. Steps to reproduce the problem:

  1. emacs -Q
  2. Load lsp-mode, lsp-ui
  3. Open a file and enable lsp & lsp-ui.
  4. Trigger lsp-ui-doc-show.
  5. 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: image

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

UniverseFly avatar May 25 '21 07:05 UniverseFly

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. 😕

jcs090218 avatar May 25 '21 10:05 jcs090218