Fix eldoc print when variable type information is missing

externals/dape
Daniel Pettersson 2024-05-18 18:11:37 +02:00
parent 64e0952dca
commit 728c3c621e
1 changed files with 6 additions and 4 deletions

10
dape.el
View File

@ -5213,10 +5213,12 @@ See `eldoc-documentation-functions', for more information."
(funcall cb (gdb-table-string table " ")
:thing symbol
:face 'font-lock-variable-name-face
:echo (format "%s %s" (or (plist-get body :value)
(plist-get body :result)
" ")
(plist-get body :type))))))))))
:echo (format "%s %s"
(or (plist-get body :value)
(plist-get body :result)
"")
(or (plist-get body :type)
""))))))))))
t)
(defun dape--add-eldoc-hook ()