Skip to content

Commit e48e330

Browse files
authored
Ensure integer (#635)
1 parent deeefa0 commit e48e330

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-ui-sideline.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ This face have a low priority over the others."
210210

211211
(defun lsp-ui-sideline--first-line-p (pos)
212212
"Return non-nil if POS is on the first line."
213-
(save-excursion (goto-char 1) (forward-line 1) (> (point) pos)))
213+
(when (integerp pos)
214+
(save-excursion (goto-char 1) (forward-line 1) (> (point) pos))))
214215

215216
(defun lsp-ui-sideline--calc-space (win-width str-len index)
216217
"Calculate whether there is enough space on line.

0 commit comments

Comments
 (0)