branch: externals/dape
commit 728c3c621ed411a765512e779b71515471080415
Author: Daniel Pettersson <dan...@dpettersson.net>
Commit: Daniel Pettersson <dan...@dpettersson.net>

    Fix eldoc print when variable type information is missing
---
 dape.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/dape.el b/dape.el
index 9f2d64c169..6bf5a41ee9 100644
--- a/dape.el
+++ b/dape.el
@@ -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 ()

Reply via email to