Skip to content

Commit fd68ee9

Browse files
alanzyyoncho
authored andcommitted
Check global-whitespace-mode too, for margin calculation (#200)
1 parent 2342780 commit fd68ee9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lsp-ui-sideline.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ CURRENT is non-nil when the point is on the symbol."
248248
(if (bound-and-true-p display-line-numbers-mode)
249249
(+ 2 (line-number-display-width))
250250
0)
251-
(if (bound-and-true-p whitespace-mode)
251+
(if (or
252+
(bound-and-true-p whitespace-mode)
253+
(bound-and-true-p global-whitespace-mode))
252254
1
253255
0)))
254256

0 commit comments

Comments
 (0)