Skip to content

Commit 00dd2ca

Browse files
authored
fix(align): align according to text-scale (emacs-lsp#719)
* fix(align): align according to text-scale * docs: changelog
1 parent 3632ddd commit 00dd2ca

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.org

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
** Unreleased
33
- Disable sideline code actions and doc on cursor hover to reduce noise features.
44

5+
** 8.0.1
6+
- Fix sideline alignment with text-scale (#719)
7+
58
** 8.0.0
69
- lsp-ui version working with lsp-mode v8.0.0
710

lsp-ui-sideline.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,13 @@ MARKED-STRING is the string returned by `lsp-ui-sideline--extract-info'."
299299
(+ (apply '+ lengths)
300300
(if (display-graphic-p) 1 2)))
301301

302-
(defun lsp-ui-sideline--compute-height nil
302+
(defun lsp-ui-sideline--compute-height ()
303303
"Return a fixed size for text in sideline."
304304
(if (null text-scale-mode-remapping)
305305
'(height 1)
306306
;; Readjust height when text-scale-mode is used
307307
(list 'height
308-
(/ 1 (or (plist-get (cdr text-scale-mode-remapping) :height)
308+
(/ 1 (or (plist-get (cdar text-scale-mode-remapping) :height)
309309
1)))))
310310

311311
(defun lsp-ui-sideline--make-display-string (info symbol current)

0 commit comments

Comments
 (0)