Commit 4dc5a19d authored by Nick Roberts's avatar Nick Roberts
Browse files

(gdb-tooltip-print): Avoid "Non-X frame used"

error with gud-tooltip-mode in the Linux console.
parent a2ced5a9
......@@ -504,7 +504,8 @@ otherwise do not."
(buffer-string))))
;; remove newline for gud-tooltip-echo-area
(substring string 0 (- (length string) 1))))
(or gud-tooltip-echo-area tooltip-use-echo-area)))
(or gud-tooltip-echo-area tooltip-use-echo-area
(not (display-graphic-p)))))
;; If expr is a macro for a function don't print because of possible dangerous
;; side-effects. Also printing a function within a tooltip generates an
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment