diff options
author | Andrey Orst <andreyorst@gmail.com> | 2020-04-02 11:20:51 +0300 |
---|---|---|
committer | brotzeit <brotzeitmacher@gmail.com> | 2020-04-02 10:39:54 +0200 |
commit | 242dfe859c3497c456eaacfd84942e12419529fe (patch) | |
tree | 6f85b4915b44144b5652cc2705692d2b799a45ce | |
parent | 134d9b725d21f8889f3dc72dddc418c6c6561f0e (diff) |
Take window tab-line height into account
Fix #423
-rw-r--r-- | lsp-ui-doc.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lsp-ui-doc.el b/lsp-ui-doc.el index 1f3559b..066c091 100644 --- a/lsp-ui-doc.el +++ b/lsp-ui-doc.el @@ -420,9 +420,10 @@ FRAME just below the symbol at point." (- x (- (+ frame-relative-symbol-x width) (frame-outer-width)))) x)) - (frame-y (or (and (<= height frame-relative-symbol-y) - (- y height)) - (+ y char-height)))) + (frame-y (+ (or (and (<= height frame-relative-symbol-y) + (- y height)) + (+ y char-height)) + (if (fboundp 'window-tab-line-height) (window-tab-line-height) 0)))) (set-frame-position frame (+ start-x frame-x) (+ start-y frame-y)))) (defun lsp-ui-doc--move-frame (frame) |